1 個回答
- 最新
- 最多得票
- 最多評論
0
If you are planning to tag AMIs while using the CreateImage API with "aws:executeAwsApi" action in SSM Automation, then you can specify "TagSpecifications" as follows:
Sample:-
schemaVersion: '0.3'
parameters:
instance:
type: String
mainSteps:
- name: CreateImage
action: aws:executeAwsApi
isEnd: true
inputs:
Service: ec2
Api: CreateImage
InstanceId: '{{ instance }}'
Name: 'TestAMI'
TagSpecifications:
- ResourceType: image
Tags:
- Key: Name
Value: SSM
相關內容
- AWS 官方已更新 10 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 6 個月前
- AWS 官方已更新 6 個月前
Hello. Can you give more context for this question? Are you using a custom document? What step are you creating the instance with (ex: aws:executeScript)? What API are you calling with the TagSpecifications input?