awscli 1.37.4__py3-none-any.whl → 1.37.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of awscli might be problematic. Click here for more details.
- awscli/__init__.py +1 -1
- awscli/examples/cloudtrail/create-subscription.rst +29 -26
- awscli/examples/cloudtrail/create-trail.rst +13 -11
- awscli/examples/cloudtrail/describe-trails.rst +30 -29
- awscli/examples/cloudtrail/put-event-selectors.rst +8 -8
- awscli/examples/cloudtrail/update-subscription.rst +25 -22
- awscli/examples/cloudtrail/update-trail.rst +12 -10
- awscli/examples/codebuild/create-report-group.rst +2 -2
- awscli/examples/datapipeline/get-pipeline-definition.rst +1 -1
- awscli/examples/ds-data/add-group-member.rst +12 -0
- awscli/examples/ds-data/create-group.rst +17 -0
- awscli/examples/ds-data/create-user.rst +17 -0
- awscli/examples/ds-data/delete-group.rst +11 -0
- awscli/examples/ds-data/delete-user.rst +11 -0
- awscli/examples/ds-data/describe-group.rst +21 -0
- awscli/examples/ds-data/describe-user.rst +21 -0
- awscli/examples/ds-data/disable-directory-data-access.rst +10 -0
- awscli/examples/ds-data/disable-user.rst +11 -0
- awscli/examples/ds-data/enable-directory-data-access.rst +10 -0
- awscli/examples/ds-data/list-group-members.rst +29 -0
- awscli/examples/ds-data/list-groups-for-member.rst +25 -0
- awscli/examples/ds-data/list-groups.rst +503 -0
- awscli/examples/ds-data/list-users.rst +57 -0
- awscli/examples/ds-data/remove-group-member.rst +12 -0
- awscli/examples/ds-data/reset-user-password.rst +12 -0
- awscli/examples/ds-data/search-groups.rst +25 -0
- awscli/examples/ds-data/search-users.rst +24 -0
- awscli/examples/ds-data/update-group.rst +13 -0
- awscli/examples/ds-data/update-user.rst +13 -0
- awscli/examples/ec2/describe-capacity-reservations.rst +46 -31
- awscli/examples/ec2/describe-instance-image-metadata.rst +186 -0
- awscli/examples/ec2/describe-spot-datafeed-subscription.rst +1 -1
- awscli/examples/ec2/register-image.rst +32 -32
- awscli/examples/ecr-public/get-registry-catalog-data.rst +14 -0
- awscli/examples/ecr-public/get-repository-catalog-data.rst +29 -0
- awscli/examples/ecr-public/list-tags-for-resource.rst +28 -0
- awscli/examples/ecr-public/put-registry-catalog-data.rst +15 -0
- awscli/examples/ecr-public/put-repository-catalog-data.rst +5 -4
- awscli/examples/ecr-public/tag-resource.rst +21 -0
- awscli/examples/ecr-public/untag-resource.rst +12 -0
- awscli/examples/ecs/describe-service-deployments.rst +54 -0
- awscli/examples/ecs/describe-service-revisions.rst +60 -0
- awscli/examples/ecs/list-service-deployments.rst +25 -0
- awscli/examples/ivs-realtime/create-storage-configuration.rst +20 -20
- awscli/examples/ivs-realtime/get-storage-configuration.rst +20 -20
- awscli/examples/ivs-realtime/list-storage-configurations.rst +29 -29
- awscli/examples/kendra/create-data-source.rst +23 -23
- awscli/examples/kendra/describe-data-source.rst +83 -83
- awscli/examples/kendra/update-data-source.rst +18 -18
- awscli/examples/macie2/describe-buckets.rst +13 -11
- awscli/examples/oam/create-link.rst +24 -0
- awscli/examples/oam/create-sink.rst +17 -0
- awscli/examples/oam/delete-link.rst +10 -0
- awscli/examples/oam/delete-sink.rst +10 -0
- awscli/examples/oam/get-link.rst +22 -0
- awscli/examples/oam/get-sink-policy.rst +16 -0
- awscli/examples/oam/get-sink.rst +17 -0
- awscli/examples/oam/list-attached-links.rst +23 -0
- awscli/examples/oam/list-links.rst +21 -0
- awscli/examples/oam/list-sinks.rst +19 -0
- awscli/examples/oam/list-tags-for-resource.rst +16 -0
- awscli/examples/oam/put-sink-policy.rst +17 -0
- awscli/examples/oam/tag-resource.rst +11 -0
- awscli/examples/oam/untag-resource.rst +11 -0
- awscli/examples/oam/update-link.rst +24 -0
- awscli/examples/polly/get-speech-synthesis-task.rst +23 -23
- awscli/examples/polly/list-speech-synthesis-tasks.rst +25 -25
- awscli/examples/polly/start-speech-synthesis-task.rst +27 -27
- awscli/examples/qldb/describe-journal-s3-export.rst +1 -1
- awscli/examples/qldb/export-journal-to-s3.rst +1 -1
- awscli/examples/qldb/list-journal-s3-exports-for-ledger.rst +1 -1
- awscli/examples/qldb/list-journal-s3-exports.rst +2 -2
- awscli/examples/s3api/put-bucket-acl.rst +1 -1
- awscli/examples/s3api/put-bucket-cors.rst +1 -1
- awscli/examples/s3api/put-bucket-logging.rst +10 -10
- awscli/examples/s3api/put-bucket-policy.rst +5 -5
- awscli/examples/s3api/put-object-acl.rst +1 -1
- awscli/examples/synthetics/associate-resource.rst +11 -0
- awscli/examples/synthetics/create-canary.rst +48 -0
- awscli/examples/synthetics/create-group.rst +21 -0
- awscli/examples/synthetics/delete-canary.rst +10 -0
- awscli/examples/synthetics/delete-group.rst +10 -0
- awscli/examples/synthetics/describe-canaries-last-run.rst +31 -0
- awscli/examples/synthetics/describe-canaries.rst +48 -0
- awscli/examples/synthetics/describe-runtime-versions.rst +74 -0
- awscli/examples/synthetics/disassociate-resource.rst +11 -0
- awscli/examples/synthetics/get-canary-runs.rst +29 -0
- awscli/examples/synthetics/get-canary.rst +47 -0
- awscli/examples/synthetics/get-group.rst +21 -0
- awscli/examples/synthetics/list-associated-groups.rst +20 -0
- awscli/examples/synthetics/list-group-resources.rst +16 -0
- awscli/examples/synthetics/list-groups.rst +19 -0
- awscli/examples/synthetics/list-tags-for-resource.rst +31 -0
- awscli/examples/synthetics/start-canary.rst +10 -0
- awscli/examples/synthetics/stop-canary.rst +10 -0
- awscli/examples/synthetics/tag-resource.rst +21 -0
- awscli/examples/synthetics/untag-resource.rst +21 -0
- awscli/examples/synthetics/update-canary.rst +11 -0
- {awscli-1.37.4.dist-info → awscli-1.37.6.dist-info}/METADATA +2 -2
- {awscli-1.37.4.dist-info → awscli-1.37.6.dist-info}/RECORD +108 -42
- {awscli-1.37.4.data → awscli-1.37.6.data}/scripts/aws +0 -0
- {awscli-1.37.4.data → awscli-1.37.6.data}/scripts/aws.cmd +0 -0
- {awscli-1.37.4.data → awscli-1.37.6.data}/scripts/aws_bash_completer +0 -0
- {awscli-1.37.4.data → awscli-1.37.6.data}/scripts/aws_completer +0 -0
- {awscli-1.37.4.data → awscli-1.37.6.data}/scripts/aws_zsh_completer.sh +0 -0
- {awscli-1.37.4.dist-info → awscli-1.37.6.dist-info}/LICENSE.txt +0 -0
- {awscli-1.37.4.dist-info → awscli-1.37.6.dist-info}/WHEEL +0 -0
- {awscli-1.37.4.dist-info → awscli-1.37.6.dist-info}/top_level.txt +0 -0
|
@@ -10,35 +10,45 @@ Output::
|
|
|
10
10
|
"CapacityReservations": [
|
|
11
11
|
{
|
|
12
12
|
"CapacityReservationId": "cr-1234abcd56EXAMPLE ",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"EphemeralStorage": false,
|
|
18
|
-
"CreateDate": "2019-08-16T09:03:18.000Z",
|
|
19
|
-
"AvailableInstanceCount": 1,
|
|
13
|
+
"OwnerId": "123456789111",
|
|
14
|
+
"CapacityReservationArn": "arn:aws:ec2:us-east-1:123456789111:capacity-reservation/cr-1234abcd56EXAMPLE",
|
|
15
|
+
"AvailabilityZoneId": "use1-az2",
|
|
16
|
+
"InstanceType": "c5.large",
|
|
20
17
|
"InstancePlatform": "Linux/UNIX",
|
|
21
|
-
"
|
|
22
|
-
"State": "active",
|
|
18
|
+
"AvailabilityZone": "us-east-1a",
|
|
23
19
|
"Tenancy": "default",
|
|
20
|
+
"TotalInstanceCount": 1,
|
|
21
|
+
"AvailableInstanceCount": 1,
|
|
24
22
|
"EbsOptimized": true,
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"CapacityReservationId": "cr-abcdEXAMPLE9876ef ",
|
|
23
|
+
"EphemeralStorage": false,
|
|
24
|
+
"State": "active",
|
|
25
|
+
"StartDate": "2024-10-23T15:00:24+00:00",
|
|
29
26
|
"EndDateType": "unlimited",
|
|
30
|
-
"AvailabilityZone": "eu-west-1a",
|
|
31
27
|
"InstanceMatchCriteria": "open",
|
|
28
|
+
"CreateDate": "2024-10-23T15:00:24+00:00",
|
|
32
29
|
"Tags": [],
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
"CapacityAllocations": []
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"CapacityReservationId": "cr-abcdEXAMPLE9876ef ",
|
|
34
|
+
"OwnerId": "123456789111",
|
|
35
|
+
"CapacityReservationArn": "arn:aws:ec2:us-east-1:123456789111:capacity-reservation/cr-abcdEXAMPLE9876ef",
|
|
36
|
+
"AvailabilityZoneId": "use1-az2",
|
|
37
|
+
"InstanceType": "c4.large",
|
|
36
38
|
"InstancePlatform": "Linux/UNIX",
|
|
37
|
-
"
|
|
38
|
-
"State": "cancelled",
|
|
39
|
+
"AvailabilityZone": "us-east-1a",
|
|
39
40
|
"Tenancy": "default",
|
|
41
|
+
"TotalInstanceCount": 1,
|
|
42
|
+
"AvailableInstanceCount": 1,
|
|
40
43
|
"EbsOptimized": true,
|
|
41
|
-
"
|
|
44
|
+
"EphemeralStorage": false,
|
|
45
|
+
"State": "cancelled",
|
|
46
|
+
"StartDate": "2024-10-23T15:01:03+00:00",
|
|
47
|
+
"EndDateType": "unlimited",
|
|
48
|
+
"InstanceMatchCriteria": "open",
|
|
49
|
+
"CreateDate": "2024-10-23T15:01:02+00:00",
|
|
50
|
+
"Tags": [],
|
|
51
|
+
"CapacityAllocations": []
|
|
42
52
|
}
|
|
43
53
|
]
|
|
44
54
|
}
|
|
@@ -55,20 +65,25 @@ Output::
|
|
|
55
65
|
{
|
|
56
66
|
"CapacityReservations": [
|
|
57
67
|
{
|
|
58
|
-
"CapacityReservationId": "cr-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"EphemeralStorage": false,
|
|
64
|
-
"CreateDate": "2019-08-16T09:03:18.000Z",
|
|
65
|
-
"AvailableInstanceCount": 1,
|
|
68
|
+
"CapacityReservationId": "cr-abcdEXAMPLE9876ef ",
|
|
69
|
+
"OwnerId": "123456789111",
|
|
70
|
+
"CapacityReservationArn": "arn:aws:ec2:us-east-1:123456789111:capacity-reservation/cr-abcdEXAMPLE9876ef",
|
|
71
|
+
"AvailabilityZoneId": "use1-az2",
|
|
72
|
+
"InstanceType": "c4.large",
|
|
66
73
|
"InstancePlatform": "Linux/UNIX",
|
|
67
|
-
"
|
|
68
|
-
"State": "active",
|
|
74
|
+
"AvailabilityZone": "us-east-1a",
|
|
69
75
|
"Tenancy": "default",
|
|
76
|
+
"TotalInstanceCount": 1,
|
|
77
|
+
"AvailableInstanceCount": 1,
|
|
70
78
|
"EbsOptimized": true,
|
|
71
|
-
"
|
|
79
|
+
"EphemeralStorage": false,
|
|
80
|
+
"State": "active",
|
|
81
|
+
"StartDate": "2024-10-23T15:01:03+00:00",
|
|
82
|
+
"EndDateType": "unlimited",
|
|
83
|
+
"InstanceMatchCriteria": "open",
|
|
84
|
+
"CreateDate": "2024-10-23T15:01:02+00:00",
|
|
85
|
+
"Tags": [],
|
|
86
|
+
"CapacityAllocations": []
|
|
72
87
|
}
|
|
73
88
|
]
|
|
74
89
|
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
**Example 1: To describe the AMI metadata for all instances**
|
|
2
|
+
|
|
3
|
+
The following ``describe-instance-image-metadata`` example describes the AMI metadata of all the instances in your AWS account in the specified Region. ::
|
|
4
|
+
|
|
5
|
+
aws ec2 describe-instance-image-metadata \
|
|
6
|
+
--region us-east-1
|
|
7
|
+
|
|
8
|
+
Output::
|
|
9
|
+
|
|
10
|
+
{
|
|
11
|
+
"InstanceImageMetadata": [
|
|
12
|
+
{
|
|
13
|
+
"InstanceId": "i-1234567890EXAMPLE",
|
|
14
|
+
"InstanceType": "t2.micro",
|
|
15
|
+
"LaunchTime": "2024-08-28T11:25:45+00:00",
|
|
16
|
+
"AvailabilityZone": "us-east-1a",
|
|
17
|
+
"State": {
|
|
18
|
+
"Code": 16,
|
|
19
|
+
"Name": "running"
|
|
20
|
+
},
|
|
21
|
+
"OwnerId": "123412341234",
|
|
22
|
+
"Tags": [
|
|
23
|
+
{
|
|
24
|
+
"Key": "MyTagName",
|
|
25
|
+
"Value": "my-tag-value"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"ImageMetadata": {
|
|
29
|
+
"ImageId": "ami-0b752bf1df193a6c4",
|
|
30
|
+
"Name": "al2023-ami-2023.5.20240819.0-kernel-6.1-x86_64",
|
|
31
|
+
"OwnerId": "137112412989",
|
|
32
|
+
"State": "available",
|
|
33
|
+
"ImageOwnerAlias": "amazon",
|
|
34
|
+
"CreationDate": "2023-01-25T17:20:40Z",
|
|
35
|
+
"DeprecationTime": "2025-01-25T17:20:40Z",
|
|
36
|
+
"IsPublic": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"NextToken": "...EXAMPLEwIAABAA2JHaFxLnEXAMPLE..."
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
For more information, see `Amazon Machine Images in Amazon EC2 <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html>`__ in the *Amazon EC2 User Guide*.
|
|
44
|
+
|
|
45
|
+
**Example 2: To describe the AMI metadata for the specified instances**
|
|
46
|
+
|
|
47
|
+
The following ``describe-instance-image-metadata`` example describes the AMI metadata for the specified instances. ::
|
|
48
|
+
|
|
49
|
+
aws ec2 describe-instance-image-metadata \
|
|
50
|
+
--region us-east-1 \
|
|
51
|
+
--instance-ids i-1234567890EXAMPLE i-0987654321EXAMPLE
|
|
52
|
+
|
|
53
|
+
Output::
|
|
54
|
+
|
|
55
|
+
{
|
|
56
|
+
"InstanceImageMetadata": [
|
|
57
|
+
{
|
|
58
|
+
"InstanceId": "i-1234567890EXAMPLE",
|
|
59
|
+
"InstanceType": "t2.micro",
|
|
60
|
+
"LaunchTime": "2024-08-28T11:25:45+00:00",
|
|
61
|
+
"AvailabilityZone": "us-east-1a",
|
|
62
|
+
"State": {
|
|
63
|
+
"Code": 16,
|
|
64
|
+
"Name": "running"
|
|
65
|
+
},
|
|
66
|
+
"OwnerId": "123412341234",
|
|
67
|
+
"Tags": [
|
|
68
|
+
{
|
|
69
|
+
"Key": "MyTagName",
|
|
70
|
+
"Value": "my-tag-value"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"ImageMetadata": {
|
|
74
|
+
"ImageId": "ami-0b752bf1df193a6c4",
|
|
75
|
+
"Name": "al2023-ami-2023.5.20240819.0-kernel-6.1-x86_64",
|
|
76
|
+
"OwnerId": "137112412989",
|
|
77
|
+
"State": "available",
|
|
78
|
+
"ImageOwnerAlias": "amazon",
|
|
79
|
+
"CreationDate": "2023-01-25T17:20:40Z",
|
|
80
|
+
"DeprecationTime": "2025-01-25T17:20:40Z",
|
|
81
|
+
"IsPublic": true
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"InstanceId": "i-0987654321EXAMPLE",
|
|
86
|
+
"InstanceType": "t2.micro",
|
|
87
|
+
"LaunchTime": "2024-08-28T11:25:45+00:00",
|
|
88
|
+
"AvailabilityZone": "us-east-1a",
|
|
89
|
+
"State": {
|
|
90
|
+
"Code": 16,
|
|
91
|
+
"Name": "running"
|
|
92
|
+
},
|
|
93
|
+
"OwnerId": "123412341234",
|
|
94
|
+
"Tags": [
|
|
95
|
+
{
|
|
96
|
+
"Key": "MyTagName",
|
|
97
|
+
"Value": "my-tag-value"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"ImageMetadata": {
|
|
101
|
+
"ImageId": "ami-0b752bf1df193a6c4",
|
|
102
|
+
"Name": "al2023-ami-2023.5.20240819.0-kernel-6.1-x86_64",
|
|
103
|
+
"OwnerId": "137112412989",
|
|
104
|
+
"State": "available",
|
|
105
|
+
"ImageOwnerAlias": "amazon",
|
|
106
|
+
"CreationDate": "2023-01-25T17:20:40Z",
|
|
107
|
+
"DeprecationTime": "2025-01-25T17:20:40Z",
|
|
108
|
+
"IsPublic": true
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
For more information, see `Amazon Machine Images in Amazon EC2 <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html>`__ in the *Amazon EC2 User Guide*.
|
|
115
|
+
|
|
116
|
+
**Example 3: To describe the AMI metadata for instances based on filters**
|
|
117
|
+
|
|
118
|
+
The following ``describe-instance-image-metadata`` example describes the AMI metadata for ``t2.nano`` and ``t2.micro`` instances in the ``us-east-1a`` Availability Zone. ::
|
|
119
|
+
|
|
120
|
+
aws ec2 describe-instance-image-metadata \
|
|
121
|
+
--region us-east-1 \
|
|
122
|
+
--filters Name=availability-zone,Values=us-east-1a Name=instance-type,Values=t2.nano,t2.micro
|
|
123
|
+
|
|
124
|
+
Output::
|
|
125
|
+
|
|
126
|
+
{
|
|
127
|
+
"InstanceImageMetadata": [
|
|
128
|
+
{
|
|
129
|
+
"InstanceId": "i-1234567890EXAMPLE",
|
|
130
|
+
"InstanceType": "t2.micro",
|
|
131
|
+
"LaunchTime": "2024-08-28T11:25:45+00:00",
|
|
132
|
+
"AvailabilityZone": "us-east-1a",
|
|
133
|
+
"State": {
|
|
134
|
+
"Code": 16,
|
|
135
|
+
"Name": "running"
|
|
136
|
+
},
|
|
137
|
+
"OwnerId": "123412341234",
|
|
138
|
+
"Tags": [
|
|
139
|
+
{
|
|
140
|
+
"Key": "MyTagName",
|
|
141
|
+
"Value": "my-tag-value"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"ImageMetadata": {
|
|
145
|
+
"ImageId": "ami-0b752bf1df193a6c4",
|
|
146
|
+
"Name": "al2023-ami-2023.5.20240819.0-kernel-6.1-x86_64",
|
|
147
|
+
"OwnerId": "137112412989",
|
|
148
|
+
"State": "available",
|
|
149
|
+
"ImageOwnerAlias": "amazon",
|
|
150
|
+
"CreationDate": "2023-01-25T17:20:40Z",
|
|
151
|
+
"DeprecationTime": "2025-01-25T17:20:40Z",
|
|
152
|
+
"IsPublic": true
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"InstanceId": "i-0987654321EXAMPLE",
|
|
157
|
+
"InstanceType": "t2.micro",
|
|
158
|
+
"LaunchTime": "2024-08-28T11:25:45+00:00",
|
|
159
|
+
"AvailabilityZone": "us-east-1a",
|
|
160
|
+
"State": {
|
|
161
|
+
"Code": 16,
|
|
162
|
+
"Name": "running"
|
|
163
|
+
},
|
|
164
|
+
"OwnerId": "123412341234",
|
|
165
|
+
"Tags": [
|
|
166
|
+
{
|
|
167
|
+
"Key": "MyTagName",
|
|
168
|
+
"Value": "my-tag-value"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"ImageMetadata": {
|
|
172
|
+
"ImageId": "ami-0b752bf1df193a6c4",
|
|
173
|
+
"Name": "al2023-ami-2023.5.20240819.0-kernel-6.1-x86_64",
|
|
174
|
+
"OwnerId": "137112412989",
|
|
175
|
+
"State": "available",
|
|
176
|
+
"ImageOwnerAlias": "amazon",
|
|
177
|
+
"CreationDate": "2023-01-25T17:20:40Z",
|
|
178
|
+
"DeprecationTime": "2025-01-25T17:20:40Z",
|
|
179
|
+
"IsPublic": true
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"NextToken": "...EXAMPLEV7ixRYHwIAABAA2JHaFxLnDAzpatfEXAMPLE..."
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
For more information, see `Amazon Machine Images in Amazon EC2 <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
**Example 1: To register an AMI using a manifest file**
|
|
2
|
-
|
|
3
|
-
The following ``register-image`` example registers an AMI using the specified manifest file in Amazon S3. ::
|
|
4
|
-
|
|
5
|
-
aws ec2 register-image \
|
|
6
|
-
--name my-image \
|
|
7
|
-
--image-location
|
|
8
|
-
|
|
9
|
-
Output::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"ImageId": "ami-1234567890EXAMPLE"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
For more information, see `Amazon Machine Images (AMI) <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html>`__ in the *Amazon EC2 User Guide*.
|
|
16
|
-
|
|
17
|
-
**Example 2: To register an AMI using a snapshot of a root device**
|
|
18
|
-
|
|
19
|
-
The following ``register-image`` example registers an AMI using the specified snapshot of an EBS root volume as device ``/dev/xvda``. The block device mapping also includes an empty 100 GiB EBS volume as device ``/dev/xvdf``. ::
|
|
20
|
-
|
|
21
|
-
aws ec2 register-image \
|
|
22
|
-
--name my-image \
|
|
23
|
-
--root-device-name /dev/xvda \
|
|
24
|
-
--block-device-mappings DeviceName=/dev/xvda,Ebs={SnapshotId=snap-0db2cf683925d191f} DeviceName=/dev/xvdf,Ebs={VolumeSize=100}
|
|
25
|
-
|
|
26
|
-
Output::
|
|
27
|
-
|
|
28
|
-
{
|
|
29
|
-
"ImageId": "ami-1a2b3c4d5eEXAMPLE"
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
For more information, see `Amazon Machine Images (AMI) <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html>`__ in the *Amazon EC2 User Guide*.
|
|
1
|
+
**Example 1: To register an AMI using a manifest file**
|
|
2
|
+
|
|
3
|
+
The following ``register-image`` example registers an AMI using the specified manifest file in Amazon S3. ::
|
|
4
|
+
|
|
5
|
+
aws ec2 register-image \
|
|
6
|
+
--name my-image \
|
|
7
|
+
--image-location amzn-s3-demo-bucket/myimage/image.manifest.xml
|
|
8
|
+
|
|
9
|
+
Output::
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"ImageId": "ami-1234567890EXAMPLE"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
For more information, see `Amazon Machine Images (AMI) <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html>`__ in the *Amazon EC2 User Guide*.
|
|
16
|
+
|
|
17
|
+
**Example 2: To register an AMI using a snapshot of a root device**
|
|
18
|
+
|
|
19
|
+
The following ``register-image`` example registers an AMI using the specified snapshot of an EBS root volume as device ``/dev/xvda``. The block device mapping also includes an empty 100 GiB EBS volume as device ``/dev/xvdf``. ::
|
|
20
|
+
|
|
21
|
+
aws ec2 register-image \
|
|
22
|
+
--name my-image \
|
|
23
|
+
--root-device-name /dev/xvda \
|
|
24
|
+
--block-device-mappings DeviceName=/dev/xvda,Ebs={SnapshotId=snap-0db2cf683925d191f} DeviceName=/dev/xvdf,Ebs={VolumeSize=100}
|
|
25
|
+
|
|
26
|
+
Output::
|
|
27
|
+
|
|
28
|
+
{
|
|
29
|
+
"ImageId": "ami-1a2b3c4d5eEXAMPLE"
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
For more information, see `Amazon Machine Images (AMI) <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
**To retrieve catalog metadata for a public ECR registry**
|
|
2
|
+
|
|
3
|
+
The following ``get-registry-catalog-data`` retrieves catalog metadata for an ECR public registry. ::
|
|
4
|
+
|
|
5
|
+
aws ecr-public get-registry-catalog-data \
|
|
6
|
+
--region us-east-1
|
|
7
|
+
|
|
8
|
+
Output::
|
|
9
|
+
|
|
10
|
+
{
|
|
11
|
+
"registryCatalogData": {
|
|
12
|
+
"displayName": "YourCustomPublicRepositoryalias"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
**To retrieve catalog metadata for a repository in a public registry**
|
|
2
|
+
|
|
3
|
+
The following ``get-repository-catalog-data`` example lists the catalog metadata for the repository ``project-a/nginx-web-app`` in a public registry. ::
|
|
4
|
+
|
|
5
|
+
aws ecr-public get-repository-catalog-data \
|
|
6
|
+
--repository-name project-a/nginx-web-app \
|
|
7
|
+
--region us-east-1
|
|
8
|
+
|
|
9
|
+
Output::
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"catalogData": {
|
|
13
|
+
"description": "My project-a ECR Public Repository",
|
|
14
|
+
"architectures": [
|
|
15
|
+
"ARM",
|
|
16
|
+
"ARM 64",
|
|
17
|
+
"x86",
|
|
18
|
+
"x86-64"
|
|
19
|
+
],
|
|
20
|
+
"operatingSystems": [
|
|
21
|
+
"Linux"
|
|
22
|
+
],
|
|
23
|
+
"logoUrl": "https://d3g9o9u8re44ak.cloudfront.net/logo/491d3846-8f33-4d8b-a10c-c2ce271e6c0d/4f09d87c-2569-4916-a932-5c296bf6f88a.png",
|
|
24
|
+
"aboutText": "## Quick reference\n\nMaintained <truncated>",
|
|
25
|
+
"usageText": "## Supported architectures\n\namd64, arm64v8\n\n## <truncated>"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
For more information, see `Repository catalog data <https://docs.aws.amazon.com/AmazonECR/latest/public/public-repository-catalog-data.html>`__ in the *Amazon ECR Public*.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
**To list tags for a public repository in a public registry**
|
|
2
|
+
|
|
3
|
+
The following ``list-tags-for-resource`` example lists the tags for a resource named ``project-a/nginx-web-app`` in a public registry. ::
|
|
4
|
+
|
|
5
|
+
aws ecr-public list-tags-for-resource \
|
|
6
|
+
--resource-arn arn:aws:ecr-public::123456789012:repository/project-a/nginx-web-app \
|
|
7
|
+
--region us-east-1
|
|
8
|
+
|
|
9
|
+
Output::
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"tags": [
|
|
13
|
+
{
|
|
14
|
+
"Key": "Environment",
|
|
15
|
+
"Value": "Prod"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"Key": "stack",
|
|
19
|
+
"Value": "dev1"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"Key": "Name",
|
|
23
|
+
"Value": "project-a/nginx-web-app"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
For more information, see `List tags for a public repository <https://docs.aws.amazon.com/AmazonECR/latest/public/ecr-public-using-tags.html>`__ in the *Amazon ECR Public*.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
**To create or update catalog metadata for a public ECR registry**
|
|
2
|
+
|
|
3
|
+
The following ``put-registry-catalog-data`` creates or updates catalog metadata for an ECR public registry. Only accounts that have the verified account badge can have a registry display name. ::
|
|
4
|
+
|
|
5
|
+
aws ecr-public put-registry-catalog-data \
|
|
6
|
+
--region us-east-1 \
|
|
7
|
+
--display-name <YourCustomPublicRepositoryalias>
|
|
8
|
+
|
|
9
|
+
Output::
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"registryCatalogData": {
|
|
13
|
+
"displayName": "YourCustomPublicRepositoryalias"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**
|
|
1
|
+
**To create or update the catalog data for a repository in a public registry**
|
|
2
2
|
|
|
3
3
|
The following ``put-repository-catalog-data`` example creates or update catalog data for reposiotry named `project-a/nginx-web-app` in a public registry, along with logoImageBlob, aboutText, usageText and tags information. ::
|
|
4
4
|
|
|
@@ -10,6 +10,7 @@ The following ``put-repository-catalog-data`` example creates or update catalog
|
|
|
10
10
|
Contents of ``repository-catalog-data.json``::
|
|
11
11
|
|
|
12
12
|
{
|
|
13
|
+
"repositoryName": "project-a/nginx-web-app",
|
|
13
14
|
"catalogData": {
|
|
14
15
|
"description": "My project-a ECR Public Repository",
|
|
15
16
|
"architectures": [
|
|
@@ -21,9 +22,9 @@ Contents of ``repository-catalog-data.json``::
|
|
|
21
22
|
"operatingSystems": [
|
|
22
23
|
"Linux"
|
|
23
24
|
],
|
|
24
|
-
"logoImageBlob": "
|
|
25
|
+
"logoImageBlob": "iVBORw0KGgoA<<truncated-for-better-reading>>ErkJggg==",
|
|
25
26
|
"aboutText": "## Quick reference.",
|
|
26
|
-
"usageText": "## Supported architectures are as follows"
|
|
27
|
+
"usageText": "## Supported architectures are as follows."
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
@@ -41,7 +42,7 @@ Output::
|
|
|
41
42
|
"operatingSystems": [
|
|
42
43
|
"Linux"
|
|
43
44
|
],
|
|
44
|
-
"logoUrl": "https://d3g9o9u8re44ak.cloudfront.net/logo/
|
|
45
|
+
"logoUrl": "https://d3g9o9u8re44ak.cloudfront.net/logo/df86cf58-ee60-4061-b804-0be24d97ccb1/4a9ed9b2-69e4-4ede-b924-461462d20ef0.png",
|
|
45
46
|
"aboutText": "## Quick reference.",
|
|
46
47
|
"usageText": "## Supported architectures are as follows."
|
|
47
48
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
**Example 1: To tags an existing public repository in a public registry**
|
|
2
|
+
|
|
3
|
+
The following ``tag-resource`` example tags a repository named ``project-a/nginx-web-app`` in a public registry. ::
|
|
4
|
+
|
|
5
|
+
aws ecr-public tag-resource \
|
|
6
|
+
--resource-arn arn:aws:ecr-public::123456789012:repository/project-a/nginx-web-app \
|
|
7
|
+
--tags Key=stack,Value=dev \
|
|
8
|
+
--region us-east-1
|
|
9
|
+
|
|
10
|
+
For more information, see `Using Tags for a public repository <https://docs.aws.amazon.com/AmazonECR/latest/public/ecr-public-using-tags.html>`__ in the *Amazon ECR Public*.
|
|
11
|
+
|
|
12
|
+
**Example 2: To tag an existing public repository with multiple tags in a public registry.**
|
|
13
|
+
|
|
14
|
+
The following ``tag-resource`` example tags an existing repository with multiple tags. ::
|
|
15
|
+
|
|
16
|
+
aws ecr-public tag-resource \
|
|
17
|
+
--resource-arn arn:aws:ecr-public::890517186334:repository/project-a/nginx-web-app \
|
|
18
|
+
--tags Key=key1,Value=value1 Key=key2,Value=value2 Key=key3,Value=value3 \
|
|
19
|
+
--region us-east-1
|
|
20
|
+
|
|
21
|
+
For more information, see `Using Tags for a public repository <https://docs.aws.amazon.com/AmazonECR/latest/public/ecr-public-using-tags.html>`__ in the *Amazon ECR Public*.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
**Example 1: To untags an existing public repository in a public registry**
|
|
2
|
+
|
|
3
|
+
The following ``untag-resource`` example tags a repository named ``project-a/nginx-web-app`` in a public registry. ::
|
|
4
|
+
|
|
5
|
+
aws ecr-public untag-resource \
|
|
6
|
+
--resource-arn arn:aws:ecr-public::123456789012:repository/project-a/nginx-web-app \
|
|
7
|
+
--tag-keys stack \
|
|
8
|
+
--region us-east-1
|
|
9
|
+
|
|
10
|
+
This command produces no output.
|
|
11
|
+
|
|
12
|
+
For more information, see `Using Tags for a public repository <https://docs.aws.amazon.com/AmazonECR/latest/public/ecr-public-using-tags.html>`__ in the *Amazon ECR Public*.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
**To describe service deployment details**
|
|
2
|
+
|
|
3
|
+
The following ``describe-service-deployments`` example returns the service deployment details for the service deployment with the ARN ``arn:aws:ecs:us-east-1:123456789012:service-deployment/example-cluster/example-service/ejGvqq2ilnbKT9qj0vLJe``. ::
|
|
4
|
+
|
|
5
|
+
aws ecs describe-service-deployments \
|
|
6
|
+
--service-deployment-arn arn:aws:ecs:us-east-1:123456789012:service-deployment/example-cluster/example-service/ejGvqq2ilnbKT9qj0vLJe
|
|
7
|
+
|
|
8
|
+
Output::
|
|
9
|
+
|
|
10
|
+
{
|
|
11
|
+
"serviceDeployments": [
|
|
12
|
+
{
|
|
13
|
+
"serviceDeploymentArn": "arn:aws:ecs:us-east-1:123456789012:service-deployment/example-cluster/example-service/ejGvqq2ilnbKT9qj0vLJe",
|
|
14
|
+
"serviceArn": "arn:aws:ecs:us-east-1:123456789012:service/example-cluster/example-service",
|
|
15
|
+
"clusterArn": "arn:aws:ecs:us-east-1:123456789012:cluster/example-cluster",
|
|
16
|
+
"createdAt": "2024-10-31T08:03:30.917000-04:00",
|
|
17
|
+
"startedAt": "2024-10-31T08:03:32.510000-04:00",
|
|
18
|
+
"finishedAt": "2024-10-31T08:05:04.527000-04:00",
|
|
19
|
+
"updatedAt": "2024-10-31T08:05:04.527000-04:00",
|
|
20
|
+
"sourceServiceRevisions": [],
|
|
21
|
+
"targetServiceRevision": {
|
|
22
|
+
"arn": "arn:aws:ecs:us-east-1:123456789012:service-revision/example-cluster/example-service/1485800978477494678",
|
|
23
|
+
"requestedTaskCount": 1,
|
|
24
|
+
"runningTaskCount": 1,
|
|
25
|
+
"pendingTaskCount": 0
|
|
26
|
+
},
|
|
27
|
+
"status": "SUCCESSFUL",
|
|
28
|
+
"deploymentConfiguration": {
|
|
29
|
+
"deploymentCircuitBreaker": {
|
|
30
|
+
"enable": true,
|
|
31
|
+
"rollback": true
|
|
32
|
+
},
|
|
33
|
+
"maximumPercent": 200,
|
|
34
|
+
"minimumHealthyPercent": 100,
|
|
35
|
+
"alarms": {
|
|
36
|
+
"alarmNames": [],
|
|
37
|
+
"rollback": false,
|
|
38
|
+
"enable": false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"deploymentCircuitBreaker": {
|
|
42
|
+
"status": "MONITORING_COMPLETE",
|
|
43
|
+
"failureCount": 0,
|
|
44
|
+
"threshold": 3
|
|
45
|
+
},
|
|
46
|
+
"alarms": {
|
|
47
|
+
"status": "DISABLED"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"failures": []
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
For more information, see `View service history using Amazon ECS service deployments <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-deployment.html>`_ in the *Amazon ECS Developer Guide*.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
**To describe service revision details**
|
|
2
|
+
|
|
3
|
+
The following ``describe-service-revisions`` example returns the service revision details for the service revision with the ARN ``arn:aws:ecs:us-east-1:123456789012:service-revision/example-cluster/example-service/1485800978477494678``. ::
|
|
4
|
+
|
|
5
|
+
aws ecs describe-service-revisions \
|
|
6
|
+
--service-revision-arns arn:aws:ecs:us-east-1:123456789012:service-revision/example-cluster/example-service/1485800978477494678
|
|
7
|
+
|
|
8
|
+
Output::
|
|
9
|
+
|
|
10
|
+
{
|
|
11
|
+
"serviceRevisions": [
|
|
12
|
+
{
|
|
13
|
+
"serviceRevisionArn": "arn:aws:ecs:us-east-1:123456789012:service-revision/example-cluster/example-service/1485800978477494678",
|
|
14
|
+
"serviceArn": "arn:aws:ecs:us-east-1:123456789012:service/example-cluster/example-service",
|
|
15
|
+
"clusterArn": "arn:aws:ecs:us-east-1:123456789012:cluster/example-cluster",
|
|
16
|
+
"taskDefinition": "arn:aws:ecs:us-east-1:123456789012:task-definition/webserver:5",
|
|
17
|
+
"capacityProviderStrategy": [
|
|
18
|
+
{
|
|
19
|
+
"capacityProvider": "FARGATE",
|
|
20
|
+
"weight": 1,
|
|
21
|
+
"base": 0
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"platformVersion": "1.4.0",
|
|
25
|
+
"platformFamily": "Linux",
|
|
26
|
+
"networkConfiguration": {
|
|
27
|
+
"awsvpcConfiguration": {
|
|
28
|
+
"subnets": [
|
|
29
|
+
"subnet-0d0eab1bb38d5ca64",
|
|
30
|
+
"subnet-0db5010045995c2d5"
|
|
31
|
+
],
|
|
32
|
+
"securityGroups": [
|
|
33
|
+
"sg-02556bf85a191f59a"
|
|
34
|
+
],
|
|
35
|
+
"assignPublicIp": "ENABLED"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"containerImages": [
|
|
39
|
+
{
|
|
40
|
+
"containerName": "aws-otel-collector",
|
|
41
|
+
"imageDigest": "sha256:7a1b3560655071bcacd66902c20ebe9a69470d5691fe3bd36baace7c2f3c4640",
|
|
42
|
+
"image": "public.ecr.aws/aws-observability/aws-otel-collector:v0.32.0"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"containerName": "web",
|
|
46
|
+
"imageDigest": "sha256:28402db69fec7c17e179ea87882667f1e054391138f77ffaf0c3eb388efc3ffb",
|
|
47
|
+
"image": "nginx"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"guardDutyEnabled": false,
|
|
51
|
+
"serviceConnectConfiguration": {
|
|
52
|
+
"enabled": false
|
|
53
|
+
},
|
|
54
|
+
"createdAt": "2024-10-31T08:03:29.302000-04:00"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"failures": []
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
For more information, see `Amazon ECS service revisions <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-revision.html>`_ in the *Amazon ECS Developer Guide*.
|