-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9191 from elysahall/awsdocs-01-06-25
Examples for ec2
- Loading branch information
Showing
42 changed files
with
456 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 43 additions & 43 deletions
86
awscli/examples/ec2/export-client-vpn-client-configuration.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
**To export the client configuration** | ||
|
||
The following ``export-client-vpn-client-configuration`` example exports the client configuration for the specified Client VPN endpoint. In this example, the output is returned in text format to make it easier to read. :: | ||
|
||
aws ec2 export-client-vpn-client-configuration \ | ||
--client-vpn-endpoint-id cvpn-endpoint-123456789123abcde \ | ||
--output text | ||
|
||
Output:: | ||
|
||
client | ||
dev tun | ||
proto udp | ||
remote cvpn-endpoint-123456789123abcde.prod.clientvpn.ap-south-1.amazonaws.com 443 | ||
remote-random-hostname | ||
resolv-retry infinite | ||
nobind | ||
persist-key | ||
persist-tun | ||
remote-cert-tls server | ||
cipher AES-256-GCM | ||
verb 3 | ||
<ca> | ||
-----BEGIN CERTIFICATE----- | ||
MIICiTCCAfICCQD6m7oRw0uXOjANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMC | ||
VVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6 | ||
b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAd | ||
BgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wHhcNMTEwNDI1MjA0NTIxWhcN | ||
MTIwNDI0MjA0NTIxWjCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYD | ||
VQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25z | ||
b2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFt | ||
YXpvbi5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMaK0dn+a4GmWIWJ | ||
21uUSfwfEvySWtC2XADZ4nB+BLYgVIk60CpiwsZ3G93vUEIO3IyNoH/f0wYK8m9T | ||
rDHudUZg3qX4waLG5M43q7Wgc/MbQITxOUSQv7c7ugFFDzQGBzZswY6786m86gpE | ||
Ibb3OhjZnzcvQAaRHhdlQWIMm2nrAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAtCu4 | ||
nUhVVxYUntneD9+h8Mg9q6q+auNKyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0Fkb | ||
FFBjvSfpJIlJ00zbhNYS5f6GuoEDmFJl0ZxBHjJnyp378OD8uTs7fLvjx79LjSTb | ||
NYiytVbZPQUQ5Yaxu2jXnimvw3rrszlaEXAMPLE= | ||
-----END CERTIFICATE----- | ||
</ca> | ||
reneg-sec 0 | ||
|
||
For more information, see `Client VPN Endpoints <https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-working-endpoints.html>`__ in the *AWS Client VPN Administrator Guide*. | ||
**To export the client configuration** | ||
|
||
The following ``export-client-vpn-client-configuration`` example exports the client configuration for the specified Client VPN endpoint. In this example, the output is returned in text format to make it easier to read. :: | ||
|
||
aws ec2 export-client-vpn-client-configuration \ | ||
--client-vpn-endpoint-id cvpn-endpoint-123456789123abcde \ | ||
--output text | ||
|
||
Output:: | ||
|
||
client | ||
dev tun | ||
proto udp | ||
remote cvpn-endpoint-123456789123abcde.prod.clientvpn.ap-south-1.amazonaws.com 443 | ||
remote-random-hostname | ||
resolv-retry infinite | ||
nobind | ||
persist-key | ||
persist-tun | ||
remote-cert-tls server | ||
cipher AES-256-GCM | ||
verb 3 | ||
<ca> | ||
-----BEGIN CERTIFICATE----- | ||
MIICiTCCAfICCQD6m7oRw0uXOjANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMC | ||
VVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6 | ||
b24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAd | ||
BgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wHhcNMTEwNDI1MjA0NTIxWhcN | ||
MTIwNDI0MjA0NTIxWjCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYD | ||
VQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25z | ||
b2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFt | ||
YXpvbi5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMaK0dn+a4GmWIWJ | ||
21uUSfwfEvySWtC2XADZ4nB+BLYgVIk60CpiwsZ3G93vUEIO3IyNoH/f0wYK8m9T | ||
rDHudUZg3qX4waLG5M43q7Wgc/MbQITxOUSQv7c7ugFFDzQGBzZswY6786m86gpE | ||
Ibb3OhjZnzcvQAaRHhdlQWIMm2nrAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAtCu4 | ||
nUhVVxYUntneD9+h8Mg9q6q+auNKyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0Fkb | ||
FFBjvSfpJIlJ00zbhNYS5f6GuoEDmFJl0ZxBHjJnyp378OD8uTs7fLvjx79LjSTb | ||
NYiytVbZPQUQ5Yaxu2jXnimvw3rrszlaEXAMPLE= | ||
-----END CERTIFICATE----- | ||
</ca> | ||
reneg-sec 0 | ||
|
||
For more information, see `Client VPN endpoint configuration file export <https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-working-endpoint-export.html>`__ in the *AWS Client VPN Administrator Guide*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
**To view capacity reservation usage across AWS accounts** | ||
|
||
The following ``get-capacity-reservation-usage`` example displays usage information for the specified capacity reservation. :: | ||
|
||
aws ec2 get-capacity-reservation-usage \ | ||
--capacity-reservation-id cr-1234abcd56EXAMPLE | ||
|
||
Output:: | ||
|
||
{ | ||
"CapacityReservationId": "cr-1234abcd56EXAMPLE ", | ||
"InstanceUsages": [ | ||
{ | ||
"UsedInstanceCount": 1, | ||
"AccountId": "123456789012" | ||
} | ||
], | ||
"AvailableInstanceCount": 4, | ||
"TotalInstanceCount": 5, | ||
"State": "active", | ||
"InstanceType": "t2.medium" | ||
} | ||
|
||
For more information, see `Viewing Shared Capacity Reservation Usage <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservation-sharing.html#shared-cr-usage>`__ in the *Amazon Elastic Compute Cloud User Guide for Linux Instances*. | ||
**To view capacity reservation usage across AWS accounts** | ||
|
||
The following ``get-capacity-reservation-usage`` example displays usage information for the specified capacity reservation. :: | ||
|
||
aws ec2 get-capacity-reservation-usage \ | ||
--capacity-reservation-id cr-1234abcd56EXAMPLE | ||
|
||
Output:: | ||
|
||
{ | ||
"CapacityReservationId": "cr-1234abcd56EXAMPLE ", | ||
"InstanceUsages": [ | ||
{ | ||
"UsedInstanceCount": 1, | ||
"AccountId": "123456789012" | ||
} | ||
], | ||
"AvailableInstanceCount": 4, | ||
"TotalInstanceCount": 5, | ||
"State": "active", | ||
"InstanceType": "t2.medium" | ||
} | ||
|
||
For more information, see `Shared Capacity Reservations <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservation-sharing.html>`__ in the *Amazon EC2 User Guide*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 60 additions & 60 deletions
120
awscli/examples/ec2/get-network-insights-access-scope-analysis-findings.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
**To get the findings of Network Insights access scope analysis** | ||
|
||
The following ``get-network-insights-access-scope-analysis-findings`` example gets the selected scope analysis findings in your AWS account. :: | ||
|
||
aws ec2 get-network-insights-access-scope-analysis-findings \ | ||
--region us-east-1 \ | ||
--network-insights-access-scope-analysis-id nis \ | ||
--nis-123456789111 | ||
|
||
Output:: | ||
|
||
{ | ||
"NetworkInsightsAccessScopeAnalysisId": "nisa-123456789222", | ||
"AnalysisFindings": [ | ||
{ | ||
"NetworkInsightsAccessScopeAnalysisId": "nisa-123456789222", | ||
"NetworkInsightsAccessScopeId": "nis-123456789111", | ||
"FindingComponents": [ | ||
{ | ||
"SequenceNumber": 1, | ||
"Component": { | ||
"Id": "eni-02e3d42d5cceca67d", | ||
"Arn": "arn:aws:ec2:us-east-1:936459623503:network-interface/eni-02e3d32d9cceca17d" | ||
}, | ||
"OutboundHeader": { | ||
"DestinationAddresses": [ | ||
"0.0.0.0/5", | ||
"11.0.0.0/8", | ||
"12.0.0.0/6", | ||
"128.0.0.0/3", | ||
"16.0.0.0/4", | ||
"160.0.0.0/5", | ||
"168.0.0.0/6", | ||
"172.0.0.0/12" | ||
"8.0.0.0/7" | ||
], | ||
"DestinationPortRanges": [ | ||
{ | ||
"From": 0, | ||
"To": 65535 | ||
} | ||
], | ||
"Protocol": "6", | ||
"SourceAddresses": [ | ||
"10.0.2.253/32" | ||
], | ||
"SourcePortRanges": [ | ||
{ | ||
"From": 0, | ||
"To": 65535 | ||
} | ||
] | ||
}, [etc] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
|
||
For more information, see `Getting started with Network Access Analyzer using the AWS CLI <https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/getting-started-cli-naa.html>`__ in the *Network Access Analyzer Guide*. | ||
**To get the findings of Network Insights access scope analysis** | ||
|
||
The following ``get-network-insights-access-scope-analysis-findings`` example gets the selected scope analysis findings in your AWS account. :: | ||
|
||
aws ec2 get-network-insights-access-scope-analysis-findings \ | ||
--region us-east-1 \ | ||
--network-insights-access-scope-analysis-id nis \ | ||
--nis-123456789111 | ||
|
||
Output:: | ||
|
||
{ | ||
"NetworkInsightsAccessScopeAnalysisId": "nisa-123456789222", | ||
"AnalysisFindings": [ | ||
{ | ||
"NetworkInsightsAccessScopeAnalysisId": "nisa-123456789222", | ||
"NetworkInsightsAccessScopeId": "nis-123456789111", | ||
"FindingComponents": [ | ||
{ | ||
"SequenceNumber": 1, | ||
"Component": { | ||
"Id": "eni-02e3d42d5cceca67d", | ||
"Arn": "arn:aws:ec2:us-east-1:936459623503:network-interface/eni-02e3d32d9cceca17d" | ||
}, | ||
"OutboundHeader": { | ||
"DestinationAddresses": [ | ||
"0.0.0.0/5", | ||
"11.0.0.0/8", | ||
"12.0.0.0/6", | ||
"128.0.0.0/3", | ||
"16.0.0.0/4", | ||
"160.0.0.0/5", | ||
"168.0.0.0/6", | ||
"172.0.0.0/12" | ||
"8.0.0.0/7" | ||
], | ||
"DestinationPortRanges": [ | ||
{ | ||
"From": 0, | ||
"To": 65535 | ||
} | ||
], | ||
"Protocol": "6", | ||
"SourceAddresses": [ | ||
"10.0.2.253/32" | ||
], | ||
"SourcePortRanges": [ | ||
{ | ||
"From": 0, | ||
"To": 65535 | ||
} | ||
] | ||
}, [etc] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
|
||
For more information, see `Getting started with Network Access Analyzer using the AWS CLI <https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/getting-started-cli.html>`__ in the *Network Access Analyzer Guide*. |
Oops, something went wrong.