Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update aws arn role block #267

Merged

Conversation

zackhee997
Copy link
Collaborator

@zackhee997 zackhee997 commented Mar 19, 2024

fixes:

This PR modifies the aws arn_role within the s3 backend config. The aws arn_role has been updated with a nested format. This allows follows the updated arn_role format and eliminate the deprecated warnings.

1. aws arn block is deprecating

2. refactor arn role block into latest format
@zackhee997 zackhee997 requested a review from vincenthsh as a code owner March 19, 2024 07:15
@vincenthsh
Copy link
Owner

vincenthsh commented Mar 19, 2024

please run make update-golden-files

@vincenthsh vincenthsh changed the title chore: update aws arn role block feat: update aws arn role block Mar 19, 2024
Comment on lines -4 to +5
profile: profile
role: role
account_id: "12345"
Copy link
Owner

@vincenthsh vincenthsh Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sure we hit the case where a role is used (which also requires account_id to be set)

errs = multierror.Append(errs, fmt.Errorf("when backend kind == 's3' and role is set, account_id must also be set (component %s)", component))

@vincenthsh vincenthsh merged commit 7902825 into feat-multi-module-components Mar 19, 2024
3 checks passed
@vincenthsh vincenthsh deleted the chore/update-aws-arn-role-block branch March 19, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants