AWS cli documentation change
Summary
Added examples section showing instance profile creation with security configurations like VPC security groups and non-public accessibility. Updated CLI version references.
Security assessment
The example documents security features (network isolation via VPC groups and disabling public access) but doesn't address a specific security vulnerability. It enhances documentation of security best practices.
Diff
diff --git a/cli/latest/reference/dms/create-instance-profile.md b/cli/latest/reference/dms/create-instance-profile.md index 9e0ca95a4..0714b0ae0 100644 --- a//cli/latest/reference/dms/create-instance-profile.md +++ b//cli/latest/reference/dms/create-instance-profile.md @@ -15 +15 @@ - * [AWS CLI 2.35.19 Command Reference](../../index.html) » + * [AWS CLI 2.35.21 Command Reference](../../index.html) » @@ -35,0 +36 @@ + * Examples @@ -298,0 +300,45 @@ The formatting style for error output. By default, errors are displayed in enhan +## Examples¶ + +### Note + +To use the following examples, you must have the AWS CLI installed and configured. See the [Getting started guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) in the _AWS CLI User Guide_ for more information. + +Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See [Using quotation marks with strings](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html) in the _AWS CLI User Guide_ . + +**To create an instance profile** + +The following `create-instance-profile` example creates an instance profile. + + + aws dms create-instance-profile \ + --instance-profile-name example-instance-profile \ + --description "Example instance profile for documentation" \ + --subnet-group-identifier example-replication-subnet-group \ + --vpc-security-groups "sg-0123456789abcdef0" \ + --kms-key-arn arn:aws:kms:us-east-1:123456789012:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 \ + --network-type IPV4 \ + --no-publicly-accessible + + +Output: + + + { + "InstanceProfile": { + "InstanceProfileArn": "arn:aws:dms:us-east-1:123456789012:instance-profile:EXAMPLEABCDEFGHIJKLMNOPQRS", + "KmsKeyArn": "arn:aws:kms:us-east-1:123456789012:key/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", + "PubliclyAccessible": false, + "NetworkType": "IPV4", + "InstanceProfileName": "example-instance-profile", + "Description": "Example instance profile for documentation", + "InstanceProfileCreationTime": "2026-01-09T12:30:00.000000+00:00", + "SubnetGroupIdentifier": "example-replication-subnet-group", + "VpcSecurityGroups": [ + "sg-0123456789abcdef0" + ] + } + } + + +For more information, see [Working with instance profiles](https://docs.aws.amazon.com/dms/latest/userguide/instance-profiles.html) in the _AWS Database Migration Service User Guide_. + @@ -359 +405 @@ InstanceProfile -> (structure) - * [AWS CLI 2.35.19 Command Reference](../../index.html) » + * [AWS CLI 2.35.21 Command Reference](../../index.html) »