1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
For SSM parameters shared by another AWS account, enter the full parameter ARN.
for example:
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'
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
I tried the suggested approach but I am getting an error
I did upgrade the AWS CLI to version 2.15. Also I was able to run
aws ssm get-parameter --name <remote-parameter-arn>
from the target account without any issues..after running
cfn-lint -t mytemplate.yml
I got the following responseTried the approach and got the same results.
can you provide a full CF Template ?