many-hospital-67245
10/21/2024, 8:45 AM`
sink.go:178] defaultSink::Error(error: problem logging in: read ".pulumi/meta.yaml": blob (key ".pulumi/meta.yaml") (code=Unknown): AccessDenied: Access Denied
status code: 403, request id: <OBFUSCATED>, host id: <OBFUSCATED>)
Pulumi configs tried:
- aws:region
set to the region of the non-production account
- aws:assumeRole
set to the ARN of the role in the non-production account
- aws:profile
set to the name of the profile in the build account that has the necessary permissions, including exporting AWS_DEFAULT_PROFILE to the profile name used
- combinations of the above
None of these have worked as expected.
Am I doing something wrong, or is this scenario not supported?little-cartoon-10569
10/21/2024, 7:13 PMaws:*
config is for the default provider, which is used to connect to AWS during the run/deployment phases. It is not related to the backend: you need to use the normal credentials for this. Set up the appropriate environment variables like AWS_PROFILE, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, etc.little-cartoon-10569
10/21/2024, 7:14 PMmany-hospital-67245
10/21/2024, 7:19 PMlittle-cartoon-10569
10/21/2024, 7:22 PMlittle-cartoon-10569
10/21/2024, 7:23 PMwith: env: AWS_PROFILE: ...
many-hospital-67245
10/21/2024, 7:23 PMlittle-cartoon-10569
10/21/2024, 7:24 PMmany-hospital-67245
10/21/2024, 7:24 PMlittle-cartoon-10569
10/21/2024, 7:24 PMmany-hospital-67245
10/21/2024, 7:24 PMlittle-cartoon-10569
10/21/2024, 7:25 PM- uses: pulumi/actions@v6
with:
command: preview
stack-name: org-name/stack-name
env:
AWS_PROFILE: ${{ secrets.AWS_PROFILE }}
many-hospital-67245
10/21/2024, 7:25 PMmany-hospital-67245
10/21/2024, 7:26 PMmany-hospital-67245
10/21/2024, 7:48 PMenv: AWS_DEFAULT_PROFILE: <profile_name>
AND after renaming the global env from AWS_WEB_IDENTITY_TOKEN_FILE
to WEB_IDENTITY_TOKEN_FILE
which It think confused the CLI into giving the web_identity token var preference over AWS_DEFAULT_PROFILEmany-hospital-67245
10/21/2024, 7:49 PM