-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error during the SAM pipeline bootstrap #5470
Comments
Hi @aleguern-azivko thanks for raising the issue. |
|
Thanks for providing the GH Actions yml. It seems like I've misunderstood - I thought it was the GH Actions running the I looked up here:
Can you confirm if the IAM user actually exists? |
No the user is not created by the command |
If you have a quick fix to create the user and the access keys with the right permissions it would be great also ! I would be able to manually create the user in my template for now. |
|
Bug Report
Description
I encountered an error during the SAM pipeline bootstrap process in CloudFormation when using GitHub Actions.
Steps to Reproduce
sam pipeline init
command to initialize the SAM pipeline.sam pipeline bootstrap
command to bootstrap the pipeline.Invalid principal in policy: "AWS":"arn:aws:iam::ACCOUNT_ID:user/aws-sam-cli-managed-dev-pipeline-reso-PipelineUser-ID" (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument; Request ID: Proxy: null)
Expected Behavior
I expected the SAM pipeline bootstrap process to complete without any errors and successfully deploy the CloudFormation stack.
Actual Behavior
The CloudFormation deployment fails with the "MalformedPolicyDocument" error, specifically due to an invalid principal in the policy document.
Error Message/Logs
Invalid principal in policy: "AWS":"arn:aws:iam::ACCOUNT:user/aws-sam-cli-managed-dev-pipeline-reso-PipelineUser-ID" (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument; Request ID: Proxy: null)
Environment
sam pipeline init
andsam pipeline bootstrap
commands are executed within a GitHub Actions workflow.Additional Information
I am using the default configuration for the SAM pipeline initialization and bootstrap process. No additional modifications were made to the pipeline or IAM roles.
Please let me know if you need any further information. Thank you for your assistance!
Please note that the provided text is a generated example, and you may need to revie
The text was updated successfully, but these errors were encountered: