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

cloudformation deploy fails when using SSM Advanced Parameter Share ARN #8595

Open
lmayorga1980 opened this issue Mar 22, 2024 · 1 comment
Assignees
Labels
bug This issue is a bug. cloudformation package-deploy customization Issues related to CLI customizations (located in /awscli/customizations) p3 This is a minor priority issue response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@lmayorga1980
Copy link

Describe the bug

Trying to use the consume the new ssm advanced parameter sharing

Resources:
  MyEC2Instance:
    Type: 'AWS::EC2::Instance'
    Properties:
      # Other EC2 properties...
      UserData:
        Fn::Base64:
          Fn::Sub: |
            #!/bin/bash
            echo "${MyParameter}"
Parameters:
  MyParameter:
    Description: SSM parameter value
    Type: 'AWS::SSM::Parameter::Value<String>'
    Default: 'arn:aws:ssm:REGION:SOURCE_ACCOUNT_ID:parameter/PARAMETER_NAME'

Expected Behavior

It should create the instance using the AMI value from the SSM Shared Parameter from Cross Account.

Current Behavior

An error ocurred (Internal Failure) when calling the CreateChangeSet operation (reached max retries: 2) Unknown

Reproduction Steps

  1. Create an SSM Advanced Parameter in AWS Account A with a Value equal to an existing AMI ID
  2. Share the SSM Parameter using RAM and grant access to AWS Account B
  3. Create a CF Template similar to the provided one in order to launch a simple instance - This is just to verify the launch of the appropriate AMI ID
  4. Run aws cloudformation depoy <template>

Possible Solution

No response

Additional Information/Context

No response

CLI version used

2.15.x

Environment details (OS name and version, etc.)

Mac OS Sonoma 14.4

@lmayorga1980 lmayorga1980 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 22, 2024
@tim-finnigan tim-finnigan self-assigned this May 10, 2024
@tim-finnigan
Copy link
Contributor

Thanks for reporting this issue. That command initially timed out for me but I was able to deploy on the second attempt. Have you tried increasing the max_attempts per the retries documentation? I was also able to deploy the template using the SAM CLI - sam deploy command.

@tim-finnigan tim-finnigan added cloudformation package-deploy response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. customization Issues related to CLI customizations (located in /awscli/customizations) p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. cloudformation package-deploy customization Issues related to CLI customizations (located in /awscli/customizations) p3 This is a minor priority issue response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants