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

SAM Deploy Blocked #13333

Closed
desert-digital opened this issue Oct 14, 2023 · 1 comment
Closed

SAM Deploy Blocked #13333

desert-digital opened this issue Oct 14, 2023 · 1 comment
Labels
pending-triage Issue is pending triage question General question

Comments

@desert-digital
Copy link

Amplify CLI Version

12.1.1

Question

I am using Visual Studio Code and the AWS Toolkit.

I have two account (for different projects), let's call them account_number_1 and account_number_2, and I am unable to deploy my SAM project to the second account. The error that I get is:

An error occurred (AccessDenied) when calling the CreateChangeSet operation: User: arn:aws:iam::<account_number_1>:user/amplify-elys is not authorized to perform: cloudformation:CreateChangeSet on resource: arn:aws:cloudformation:us-west-1:<account_number_1>:stack/aws-sam-cli-managed-default/* because no identity-based policy allows the cloudformation:CreateChangeSet action

I changed the profile using the AWS Toolkit to the second account, and verified that the aws_access_key_id and the aws_secret_access_key are correct.

Is there a SAM configuration file that needs to be changed? Why is the SAM CLI picking up a user from account_number_1?

@desert-digital desert-digital added pending-triage Issue is pending triage question General question labels Oct 14, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage Issue is pending triage question General question
Projects
None yet
Development

No branches or pull requests

1 participant