aws / eks-anywhere-packages

Apache License 2.0
25 stars 27 forks source link

Remove AWS_PROFILE env variable from prod release job #1149

Closed sp1999 closed 2 months ago

sp1999 commented 2 months ago

Description of changes: Packages prod release job is failing with following error:

/codebuild/output/src2082008850/src/git-codecommit.us-west-2.amazonaws.com/v1/repos/aws.eks-anywhere-packages/bin/oras login 067575901363.dkr.ecr.us-west-2.amazonaws.com/eks-anywhere-packages-bundles --username AWS --password-stdin 
aws ecr --region=us-west-2 get-login-password
The config profile (prod) could not be found
Error: Get "https://067575901363.dkr.ecr.us-west-2.amazonaws.com/v2/": no basic auth credentials

This PR fixes this by removing the exported AWS_PROFILE env variables from the prod release script.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

eks-distro-bot commented 2 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sp1999

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/aws/eks-anywhere-packages/blob/main/OWNERS)~~ [sp1999] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
sp1999 commented 2 months ago

Duplicate PR: https://github.com/aws/eks-anywhere-packages/pull/1148