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

PP-12740 Update assume role task to use AWS SDK v3 #1234

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

kbottla
Copy link
Contributor

@kbottla kbottla commented Jun 19, 2024

WHAT

  • Updated assume-role task to use AWS SDK v3
  • Updated Dockerfile to install required npm AWS SDK package for sts

This is to test IMDSv2 changes using the latest AWS SDK.

The current version results in the below error even though our code is similar to AWS docs https://docs.aws.amazon.com/code-library/latest/ug/sts_example_sts_AssumeRole_section.html

Missing credentials in the config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

How

Tested the change with infra-detector job https://pay-cd.deploy.payments.service.gov.uk/teams/pay-deploy/pipelines/infra-drift-detector/jobs/deploy-check-for-zendesk-unsubscribers/builds/26483 and notice assume-role task doesn't display maintenance mode warning anymore

- Updated assume-role task to use AWS SDK v3
- Updated Dockerfile to install required npm AWS SDK package for sts
@kbottla kbottla marked this pull request as ready for review June 19, 2024 14:31
@kbottla kbottla merged commit a7e3647 into master Jun 19, 2024
2 checks passed
@kbottla kbottla deleted the pp_12740_update_assume_role branch June 19, 2024 14:45
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