You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have three accounts that I'm trying to set up with the necessary roles and permissions for people to assume roles across accounts.
Accounts:
Root
Identity (IAM Users, Groups)
Production (Workload)
I've created an IdentityStack using cdktf that has created the roles and permissions. Initially I was using a LocalBackend and everything was working fine.
I've since migrated my state to an S3Backend and I expected things to continue working as long as I set the correct assumeRole on the S3Backend.
N.B.
I'm only using OrganizationAccountAccessRole because my next step was going to be to create a dedicated role for terraform. Up until this point OrganizationAccountAccessRole had been working fine for bootstrapping the accounts.
Steps to Reproduce
Here's an example of my stack. The credentials I'm using are from the Root account and have permissions to assume the OrganizationAccountAccessRole in Identity and Production.
External Error: Could not determine cdktf version. Please make sure you are in a directory containing a cdktf project and have all dependencies installed.
External Error: Could not determine cdktf version. Please make sure you are in a directory containing a cdktf project and have all dependencies installed.
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
Expected Behavior
I have three accounts that I'm trying to set up with the necessary roles and permissions for people to assume roles across accounts.
Accounts:
I've created an
IdentityStack
using cdktf that has created the roles and permissions. Initially I was using aLocalBackend
and everything was working fine.I've since migrated my state to an
S3Backend
and I expected things to continue working as long as I set the correctassumeRole
on theS3Backend
.Actual Behavior
Instead I'm now getting the following error.
Unless I'm misunderstanding something, my guess is that it doesn't seem to be correctly assuming the role needed to access the configured
S3Backend
.I've run the equivalent command using the AWS CLI and my credentials have the necessary permissions to assume the role without any issue.
N.B.
I'm only using
OrganizationAccountAccessRole
because my next step was going to be to create a dedicated role for terraform. Up until this pointOrganizationAccountAccessRole
had been working fine for bootstrapping the accounts.Steps to Reproduce
Here's an example of my stack. The credentials I'm using are from the Root account and have permissions to assume the
OrganizationAccountAccessRole
in Identity and Production.Versions
cdktf debug
gives me...I'm using these versions...
Node: v22.11.0
Providers
cdktf provider list
gives me...I'm using these versions...
Gist
No response
Possible Solutions
No response
Workarounds
No response
Anything Else?
No response
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: