Provisioning tfstate backend roles in refarch #14
-
Spinning my wheels a bit on this one so figured I'd ask. In the baseline steps there is a note:
And possibly related:
However, none of the steps in the baseline seem to provision the roles for accessing the tfstate. Tracing through it looks like the The result is that the
The role doesn't exist so the error is clear, however, passing access_roles_enabled=true doesn't work since the account-map needs to be created. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
We'll likely need to go over this during a workshop call, but just to be clear:
|
Beta Was this translation helpful? Give feedback.
-
I was able to move past this by temporarily manually adding the role and creating the necessary S3/Dynamo policies in the root account along with the ability for the SuperAdmin to assume the role. After this, I ran into a second issue in that the component metadata for several accounts was empty so I add a condition in the dynamic-roles.tf of account-map to discard empty objects loaded by the utils helper. |
Beta Was this translation helpful? Give feedback.
I was able to move past this by temporarily manually adding the role and creating the necessary S3/Dynamo policies in the root account along with the ability for the SuperAdmin to assume the role.
After this, I ran into a second issue in that the component metadata for several accounts was empty so I add a condition in the dynamic-roles.tf of account-map to discard empty objects loaded by the utils helper.