@@ -168,8 +168,8 @@ with a payload identifying the resource, the replication strategy, and AWS crede
168168 "resource_identifier" : " <identifier>"
169169 },
170170 "source_aws_config" : {
171- "aws_access_key_id" : " ..." ,
172- "aws_secret_access_key" : " ..." ,
171+ "aws_access_key_id" : " ..." , // optional, falls back to the default credential chain (e.g. `AWS_PROFILE`) if omitted
172+ "aws_secret_access_key" : " ..." , // optional, same as above
173173 "aws_session_token" : " ..." , // optional
174174 "region_name" : " ..." ,
175175 "endpoint_url" : " ..." // optional
@@ -178,6 +178,23 @@ with a payload identifying the resource, the replication strategy, and AWS crede
178178}
179179```
180180
181+ For example, to replicate an SSM parameter named ` myparam ` using credentials whose default region is ` eu-central-1 ` :
182+
183+ ``` json showLineNumbers
184+ {
185+ "replication_type" : " SINGLE_RESOURCE" ,
186+ "replication_job_config" : {
187+ "resource_type" : " AWS::SSM::Parameter" ,
188+ "resource_identifier" : " myparam"
189+ },
190+ "source_aws_config" : {
191+ "aws_access_key_id" : " AKIAIOSFODNN7EXAMPLE" ,
192+ "aws_secret_access_key" : " wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" ,
193+ "region_name" : " eu-central-1"
194+ }
195+ }
196+ ```
197+
181198Use ` replication_type: "BATCH" ` to discover and replicate every matching resource instead of one.
182199For example, to replicate all SSM parameters under ` /dev/ ` :
183200
@@ -189,9 +206,9 @@ For example, to replicate all SSM parameters under `/dev/`:
189206 "resource_identifier" : " /dev/"
190207 },
191208 "source_aws_config" : {
192- "aws_access_key_id" : " ... " ,
193- "aws_secret_access_key" : " ... " ,
194- "region_name" : " ... "
209+ "aws_access_key_id" : " AKIAIOSFODNN7EXAMPLE " ,
210+ "aws_secret_access_key" : " wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY " ,
211+ "region_name" : " eu-central-1 "
195212 }
196213}
197214```
0 commit comments