1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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'
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
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 ?