diff --git a/api-gateway/cognito-api-lambda/README.md b/api-gateway/cognito-api-lambda/README.md index 3fc86a99..79d18dba 100644 --- a/api-gateway/cognito-api-lambda/README.md +++ b/api-gateway/cognito-api-lambda/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/api-gateway/dynamodb-cognito/README.md b/api-gateway/dynamodb-cognito/README.md index f2c44e6e..67499560 100644 --- a/api-gateway/dynamodb-cognito/README.md +++ b/api-gateway/dynamodb-cognito/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/api-gateway/dynamodb/README.md b/api-gateway/dynamodb/README.md index 9026b328..07738c4b 100644 --- a/api-gateway/dynamodb/README.md +++ b/api-gateway/dynamodb/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/api-gateway/http-dynamodb-crud-api/README.md b/api-gateway/http-dynamodb-crud-api/README.md index 41563c83..0e7e98d5 100644 --- a/api-gateway/http-dynamodb-crud-api/README.md +++ b/api-gateway/http-dynamodb-crud-api/README.md @@ -59,7 +59,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/api-gateway/logging-api-calls-to-cloudwatch-logs/README.md b/api-gateway/logging-api-calls-to-cloudwatch-logs/README.md index bcc9ad83..a9da2fc4 100644 --- a/api-gateway/logging-api-calls-to-cloudwatch-logs/README.md +++ b/api-gateway/logging-api-calls-to-cloudwatch-logs/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth -c firehose_name={your-delivery-stream-name} --alldiff --git a/api-gateway/logging-api-calls-to-firehose/README.md b/api-gateway/logging-api-calls-to-firehose/README.md index f67dd01c..c7b0750a 100644 --- a/api-gateway/logging-api-calls-to-firehose/README.md +++ b/api-gateway/logging-api-calls-to-firehose/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth -c firehose_name=amazon-apigateway-{your-delivery-stream-name}diff --git a/athena/README.md b/athena/README.md index b70b59a5..cd52a1c3 100644 --- a/athena/README.md +++ b/athena/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --parameters AthenaWorkGroupName='your-athena-work-group-name'diff --git a/bedrock/cfn/opensearch-serverless/README.md b/bedrock/cfn/opensearch-serverless/README.md index c4c4174b..ac75d9c7 100644 --- a/bedrock/cfn/opensearch-serverless/README.md +++ b/bedrock/cfn/opensearch-serverless/README.md @@ -113,7 +113,7 @@ Now this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/bedrock/generative-ai-cdk-constructs/README.md b/bedrock/generative-ai-cdk-constructs/README.md index 0689bd4a..69a16889 100644 --- a/bedrock/generative-ai-cdk-constructs/README.md +++ b/bedrock/generative-ai-cdk-constructs/README.md @@ -71,7 +71,7 @@ At this point you can now synthesize the CloudFormation template for this code.
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synthdiff --git a/cloud9/README.md b/cloud9/README.md index c7139df1..c8a08641 100644 --- a/cloud9/README.md +++ b/cloud9/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth \ -c Cloud9OwnerName='cloud9-owner-name'diff --git a/cloudfront/static-site/README.md b/cloudfront/static-site/README.md index 8245c0a1..5f30d4be 100644 --- a/cloudfront/static-site/README.md +++ b/cloudfront/static-site/README.md @@ -55,7 +55,7 @@ At this point you can now synthesize the CloudFormation template for this code.
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth \ --parameters S3BucketForStaticContents='your-s3-bucket-for-static-contents'diff --git a/custom-resources/sagemaker-jumstart-model-deploy/README.md b/custom-resources/sagemaker-jumstart-model-deploy/README.md index dc332f72..c3651c5e 100644 --- a/custom-resources/sagemaker-jumstart-model-deploy/README.md +++ b/custom-resources/sagemaker-jumstart-model-deploy/README.md @@ -82,7 +82,7 @@ Now you are ready to synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/dms-serverless/aurora_mysql-to-kinesis/README.md b/dms-serverless/aurora_mysql-to-kinesis/README.md index 9adb4843..3cde8549 100644 --- a/dms-serverless/aurora_mysql-to-kinesis/README.md +++ b/dms-serverless/aurora_mysql-to-kinesis/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.
(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c source_database_secret_name='secret-full-name' \ -c mysql_client_security_group_name='mysql-client-security-group-name' \ diff --git a/dms-serverless/aurora_mysql-to-s3/README.md b/dms-serverless/aurora_mysql-to-s3/README.md index 38f52530..8379e06b 100644 --- a/dms-serverless/aurora_mysql-to-s3/README.md +++ b/dms-serverless/aurora_mysql-to-s3/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c source_database_secret_name='secret-full-name' \ -c mysql_client_security_group_name='mysql-client-security-group-name' \ diff --git a/dms/aurora_mysql-to-kinesis/README.md b/dms/aurora_mysql-to-kinesis/README.md index 4199e526..1d767520 100644 --- a/dms/aurora_mysql-to-kinesis/README.md +++ b/dms/aurora_mysql-to-kinesis/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c source_database_secret_name='secret-full-name' \ -c mysql_client_security_group_name='mysql-client-security-group-name' \ diff --git a/dms/aurora_mysql-to-s3/README.md b/dms/aurora_mysql-to-s3/README.md index da157f41..1f030c94 100644 --- a/dms/aurora_mysql-to-s3/README.md +++ b/dms/aurora_mysql-to-s3/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c source_database_secret_name='secret-full-name' \ -c mysql_client_security_group_name='mysql-client-security-group-name' \ diff --git a/documentdb-elastic-clusters/README.md b/documentdb-elastic-clusters/README.md index b516a05f..bf190993 100644 --- a/documentdb-elastic-clusters/README.md +++ b/documentdb-elastic-clusters/README.md @@ -52,7 +52,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth -c docdb_cluster_name='cluster-name' \ -c docdb_cluster_secret_name='docdb-secret-name'diff --git a/documentdb/README.md b/documentdb/README.md index 797b0967..05e105bc 100644 --- a/documentdb/README.md +++ b/documentdb/README.md @@ -42,7 +42,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -$ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +$ export CDK_DEFAULT_REGION=$(aws configure get region) $ cdk synth --all ``` diff --git a/ec2/ec2-with-pem-key/README.md b/ec2/ec2-with-pem-key/README.md index a2a47216..969d948f 100644 --- a/ec2/ec2-with-pem-key/README.md +++ b/ec2/ec2-with-pem-key/README.md @@ -51,7 +51,7 @@ To import an existing VPC, you should specify the following environment variable ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) ``` If you pass context variable such as `vcp_name=` (e.g. `vpc_name='[X]default'`), you can use the existing VPC. diff --git a/ec2/import-existing-vpc/README.md b/ec2/import-existing-vpc/README.md index caaf0886..e1862e8a 100644 --- a/ec2/import-existing-vpc/README.md +++ b/ec2/import-existing-vpc/README.md @@ -52,7 +52,7 @@ To import an existing VPC, you should specify the following environment variable ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) ``` If you pass context variable such as `vcp_name= ` (e.g. `vpc_name='default'`), you can use the existing VPC. diff --git a/ec2/jenkins-on-ec2/README.md b/ec2/jenkins-on-ec2/README.md index bba5cc2e..1db7bf5d 100644 --- a/ec2/jenkins-on-ec2/README.md +++ b/ec2/jenkins-on-ec2/README.md @@ -53,7 +53,7 @@ To import an existing VPC, you should specify the following environment variable ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) ``` If you pass context variable such as `vcp_name= ` (e.g. `vpc_name='default'`), you can use the existing VPC. diff --git a/ec2/vpc/README.md b/ec2/vpc/README.md index c26f3b54..b9d236bb 100644 --- a/ec2/vpc/README.md +++ b/ec2/vpc/README.md @@ -45,7 +45,7 @@ To use more than 2 AZs, be sure to specify the account and region on your stack. (.venv) $ aws configure cdk_user get region us-east-2 (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) ``` After setting enviroment variables such as `CDK_DEFAULT_ACCOUNT`, `CDK_DEFAULT_REGION`, diff --git a/ecr/README.md b/ecr/README.md index 7c8e1c1a..58c00515 100644 --- a/ecr/README.md +++ b/ecr/README.md @@ -60,7 +60,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth ``` diff --git a/glue/cdc-parquet-to-apache-iceberg/README.md b/glue/cdc-parquet-to-apache-iceberg/README.md index d3d2167d..9a069f7c 100644 --- a/glue/cdc-parquet-to-apache-iceberg/README.md +++ b/glue/cdc-parquet-to-apache-iceberg/README.md @@ -70,7 +70,7 @@ At this point you can now synthesize the CloudFormation template for this code. (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synthdiff --git a/glue/cdc-streams-to-apache-iceberg/README.md b/glue/cdc-streams-to-apache-iceberg/README.md index 1f2a5958..892b44db 100644 --- a/glue/cdc-streams-to-apache-iceberg/README.md +++ b/glue/cdc-streams-to-apache-iceberg/README.md @@ -83,7 +83,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/glue/streaming-etl/kafka-to-iceberg/README.md b/glue/streaming-etl/kafka-to-iceberg/README.md index 98dc4cd8..328c09d0 100644 --- a/glue/streaming-etl/kafka-to-iceberg/README.md +++ b/glue/streaming-etl/kafka-to-iceberg/README.md @@ -86,7 +86,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/glue/streaming-etl/msk-serverless-to-iceberg/README.md b/glue/streaming-etl/msk-serverless-to-iceberg/README.md index 52a26537..5d4cd543 100644 --- a/glue/streaming-etl/msk-serverless-to-iceberg/README.md +++ b/glue/streaming-etl/msk-serverless-to-iceberg/README.md @@ -79,7 +79,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/glue/streaming-etl/sink-to-deltalake/README.md b/glue/streaming-etl/sink-to-deltalake/README.md index 6538edf6..fc5feea8 100644 --- a/glue/streaming-etl/sink-to-deltalake/README.md +++ b/glue/streaming-etl/sink-to-deltalake/README.md @@ -109,7 +109,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all@@ -153,7 +153,7 @@ command. | product_id | string | "00001" | | product_name | string | "Volkswagen Golf" | | price | int | 10370 | - | category | string | "Volkswagen" | + | category | string | "Volkswagen" | | updated_at | string | "2023-06-13 07:24:26" | (11) Choose **Finish** diff --git a/glue/streaming-etl/sink-to-hudi/README.md b/glue/streaming-etl/sink-to-hudi/README.md index ac942b54..fc80faa4 100644 --- a/glue/streaming-etl/sink-to-hudi/README.md +++ b/glue/streaming-etl/sink-to-hudi/README.md @@ -74,7 +74,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/glue/streaming-etl/sink-to-iceberg/README.md b/glue/streaming-etl/sink-to-iceberg/README.md index 144ed4a1..82921420 100644 --- a/glue/streaming-etl/sink-to-iceberg/README.md +++ b/glue/streaming-etl/sink-to-iceberg/README.md @@ -97,7 +97,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/glue/streaming-etl/sink-to-s3/README.md b/glue/streaming-etl/sink-to-s3/README.md index 0d782519..900b1ba2 100644 --- a/glue/streaming-etl/sink-to-s3/README.md +++ b/glue/streaming-etl/sink-to-s3/README.md @@ -103,7 +103,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/kendra/webcrawler-datasource/README.md b/kendra/webcrawler-datasource/README.md index 561daf3e..a6f95134 100644 --- a/kendra/webcrawler-datasource/README.md +++ b/kendra/webcrawler-datasource/README.md @@ -100,7 +100,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/kinesis-data-analytics/kda-flink/msk-replication/README.md b/kinesis-data-analytics/kda-flink/msk-replication/README.md index 538798fd..6a4216c8 100644 --- a/kinesis-data-analytics/kda-flink/msk-replication/README.md +++ b/kinesis-data-analytics/kda-flink/msk-replication/README.md @@ -78,7 +78,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -$ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +$ export CDK_DEFAULT_REGION=$(aws configure get region) $ cdk synth ``` diff --git a/kinesis-data-firehose/data-transform/README.md b/kinesis-data-firehose/data-transform/README.md index a3f58626..6a42d22a 100644 --- a/kinesis-data-firehose/data-transform/README.md +++ b/kinesis-data-firehose/data-transform/README.md @@ -73,7 +73,7 @@ Now you are ready to synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ --parameters FirehoseStreamName='your-delivery-stream-name' \ --parameters FirehosePrefix='your-s3-bucket-prefix' @@ -83,7 +83,7 @@ For example,(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ --parameters FirehoseStreamName='PUT-S3-DataTransform' \ --parameters FirehosePrefix='json-data/year=!{timestamp:yyyy}/month=!{timestamp:MM}/day=!{timestamp:dd}/hour=!{timestamp:HH}/' diff --git a/kinesis-data-firehose/dynamic-partitioning/inline/README.md b/kinesis-data-firehose/dynamic-partitioning/inline/README.md index eb318226..5ad14362 100644 --- a/kinesis-data-firehose/dynamic-partitioning/inline/README.md +++ b/kinesis-data-firehose/dynamic-partitioning/inline/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth \ --parameters FirehoseStreamName='your-delivery-stream-name' \ --parameters FirehoseDynamicPartitionKeys='your-jq-expressions-to-parse-dynamic-partition-keys' \ @@ -83,7 +83,7 @@ Now you can create kinesis data firehose with the above mapping of parameters to(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth \ --parameters FirehoseStreamName='PUT-S3-inline' \ --parameters FirehoseDynamicPartitionKeys='{region:.region,device:.type.device,year:.event_timestamp|strftime("%Y"),month:.event_timestamp|strftime("%m"),day:.event_timestamp|strftime("%d"),hour:.event_timestamp|strftime("%H")}' \ diff --git a/kinesis-data-firehose/dynamic-partitioning/lambda/README.md b/kinesis-data-firehose/dynamic-partitioning/lambda/README.md index 9258e210..800484cb 100644 --- a/kinesis-data-firehose/dynamic-partitioning/lambda/README.md +++ b/kinesis-data-firehose/dynamic-partitioning/lambda/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ --parameters FirehoseStreamName='your-delivery-stream-name' \ --parameters FirehosePrefix='your-s3-bucket-prefix-for-dynamic-partitioning' @@ -102,7 +102,7 @@ Now you can create kinesis data firehose like this:(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ --parameters FirehoseStreamName='PUT-S3-lambda' \ --parameters FirehosePrefix='region=!{partitionKeyFromLambda:region}/device=!{partitionKeyFromLambda:device}/year=!{partitionKeyFromLambda:year}/month=!{partitionKeyFromLambda:month}/day=!{partitionKeyFromLambda:day}/hour=!{partitionKeyFromLambda:hour}/' diff --git a/kinesis-data-firehose/ekk-stack/README.md b/kinesis-data-firehose/ekk-stack/README.md index b9c41e70..c22f5204 100644 --- a/kinesis-data-firehose/ekk-stack/README.md +++ b/kinesis-data-firehose/ekk-stack/README.md @@ -42,7 +42,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -$ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +$ export CDK_DEFAULT_REGION=$(aws configure get region) $ cdk -c es_domain_name='your-es-domain-name' \ -c es_index_name='your-es-index-name' \ synth @@ -101,13 +101,13 @@ Enjoy! ## Remotely access your Amazon Elasticsearch Cluster using SSH tunnel from local machine 1. Generate the new private and public keys `mynew_key` and `mynew_key.pub`, respectively: - + ``` $ ssh-keygen -t rsa -f mynew_key ``` 2. To access the Elasticsearch Cluster, add the ssh tunnel configuration to the ssh config file of the personal local PC as follows - + ``` # Elasticsearch Tunnel Host estunnel @@ -134,17 +134,17 @@ Enjoy! IdentitiesOnly yes IdentityFile ~/.ssh/mynew_key.pub LocalForward 9200 vpc-ekk-stack-hol-qvwlxanar255vswqna37p2l2cy.us-east-1.es.amazonaws.com:443 - + ~$ ``` 3. Use the following AWS CLI command to authorize the user and push the public key to the instance using the `send-ssh-public-key` command. To support this, you need the latest version of the AWS CLI. - + ex) Bastion Host's instance details - Instance ID: `i-0989ec3292613a4f9` - Availability Zone: `us-east-1a` - Instance OS User: `ec2-user` - + ``` $ aws ec2-instance-connect send-ssh-public-key \ --region us-east-1 \ @@ -154,9 +154,9 @@ Enjoy! --ssh-public-key file://${HOME}/.ssh/mynew_key.pub { - "RequestId": "505f8675-710a-11e9-9263-4d440e7745c6", + "RequestId": "505f8675-710a-11e9-9263-4d440e7745c6", "Success": true - } + } ``` 4. Run `ssh -N estunnel` in Terminal. diff --git a/kinesis-data-firehose/msk-firehose-s3-stack/README.md b/kinesis-data-firehose/msk-firehose-s3-stack/README.md index 86255d91..9ae05900 100644 --- a/kinesis-data-firehose/msk-firehose-s3-stack/README.md +++ b/kinesis-data-firehose/msk-firehose-s3-stack/README.md @@ -63,7 +63,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=us-east-1 # your-aws-account-region +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/kinesis-data-firehose/msk-serverless-firehose-s3-stack/README.md b/kinesis-data-firehose/msk-serverless-firehose-s3-stack/README.md index 582c7b34..84721b84 100644 --- a/kinesis-data-firehose/msk-serverless-firehose-s3-stack/README.md +++ b/kinesis-data-firehose/msk-serverless-firehose-s3-stack/README.md @@ -63,7 +63,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=us-east-1 # your-aws-account-region +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/kinesis-data-firehose/opskk-stack/README.md b/kinesis-data-firehose/opskk-stack/README.md index 2633b2c0..2339edd3 100644 --- a/kinesis-data-firehose/opskk-stack/README.md +++ b/kinesis-data-firehose/opskk-stack/README.md @@ -42,7 +42,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c OpenSearchDomainName="your-opensearch-domain-name" \ -c SearchIndexName="your-opensearch-index-name" \ diff --git a/kinesis-data-streams/to-kinesis-data-firehose/README.md b/kinesis-data-streams/to-kinesis-data-firehose/README.md index b31c08e1..3cb51bc6 100644 --- a/kinesis-data-streams/to-kinesis-data-firehose/README.md +++ b/kinesis-data-streams/to-kinesis-data-firehose/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ --parameters KinesisStreamName='your-kinesis-data-stream-name' \ --parameters FirehoseStreamName='your-delivery-stream-name' \ diff --git a/lambda/alb-lambda/README.md b/lambda/alb-lambda/README.md index 5c8741fb..c2d3c03b 100644 --- a/lambda/alb-lambda/README.md +++ b/lambda/alb-lambda/README.md @@ -45,7 +45,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk -c vpc_name=your-vpc-name synth --alldiff --git a/lambda/alb-path-routing-lambda/README.md b/lambda/alb-path-routing-lambda/README.md index d3a57699..113a0cb9 100644 --- a/lambda/alb-path-routing-lambda/README.md +++ b/lambda/alb-path-routing-lambda/README.md @@ -45,7 +45,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk -c vpc_name=your-vpc-name synth --alldiff --git a/lambda/async-invoke/README.md b/lambda/async-invoke/README.md index 12ea4d6a..71ba439f 100644 --- a/lambda/async-invoke/README.md +++ b/lambda/async-invoke/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/lambda/lambda-custom-container/README.md b/lambda/lambda-custom-container/README.md index d818c5bd..13020410 100644 --- a/lambda/lambda-custom-container/README.md +++ b/lambda/lambda-custom-container/README.md @@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synthdiff --git a/lambda/lambda-layers/README.md b/lambda/lambda-layers/README.md index 26564d0e..3ae0dcbd 100644 --- a/lambda/lambda-layers/README.md +++ b/lambda/lambda-layers/README.md @@ -46,7 +46,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c vpc_name=your-existing-vpc-name \ -c s3_bucket_lambda_layer_lib=s3-bucket-lambda-layer-lib diff --git a/lambda/sagemaker-lambda-jenkins-trigger/README.md b/lambda/sagemaker-lambda-jenkins-trigger/README.md index 05c4298d..5c7218a7 100644 --- a/lambda/sagemaker-lambda-jenkins-trigger/README.md +++ b/lambda/sagemaker-lambda-jenkins-trigger/README.md @@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth \ --parameters JenkinsUser="Jenkins User" \ --parameters JenkinsAPIToken="JenkinsAPIToken" \ diff --git a/lambda/scheduled-lambda/README.md b/lambda/scheduled-lambda/README.md index 0de5a362..45a456e0 100644 --- a/lambda/scheduled-lambda/README.md +++ b/lambda/scheduled-lambda/README.md @@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synthdiff --git a/memorydb/redis-cluster/README.md b/memorydb/redis-cluster/README.md index 3f98c786..30e181fb 100644 --- a/memorydb/redis-cluster/README.md +++ b/memorydb/redis-cluster/README.md @@ -58,7 +58,7 @@ Now this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=us-east-1 # your-aws-account-region +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/memorydb/vector-search/README.md b/memorydb/vector-search/README.md index 384cb86a..4111f0f1 100644 --- a/memorydb/vector-search/README.md +++ b/memorydb/vector-search/README.md @@ -58,7 +58,7 @@ Now this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=us-east-1 # your-aws-account-region +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/msk/README.md b/msk/README.md index 70e03a8e..c06a91fa 100644 --- a/msk/README.md +++ b/msk/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk -c vpc_name='your-existing-vpc-name' synth \ --parameters KafkaClusterName='your-kafka-cluster-name' \ --parameters KafkaVersion='your-kafka-version' \ diff --git a/msk_alpha/README.md b/msk_alpha/README.md index 0690b862..8e702358 100644 --- a/msk_alpha/README.md +++ b/msk_alpha/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk -c vpc_name='your-existing-vpc-name' synth \ -c msk_cluster_name='your-kafka-cluster-name' \ --parameters KafkaVersion='your-kafka-version' \ diff --git a/mwaa/README.md b/mwaa/README.md index 4961a897..6fc1f404 100644 --- a/mwaa/README.md +++ b/mwaa/README.md @@ -58,7 +58,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk -c s3_bucket_for_dag_code='your-s3-bucket-for-airflow-dag-code' \ -c airflow_env_name='your-airflow-env-name' \ synth --all diff --git a/opensearch-ingestion/opensearch-serverless/README.md b/opensearch-ingestion/opensearch-serverless/README.md index e67245cc..997802e6 100644 --- a/opensearch-ingestion/opensearch-serverless/README.md +++ b/opensearch-ingestion/opensearch-serverless/README.md @@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth -c iam_user_name=your-iam-user-name --alldiff --git a/opensearch-ingestion/opensearch/README.md b/opensearch-ingestion/opensearch/README.md index 6e492fef..6acb5b59 100644 --- a/opensearch-ingestion/opensearch/README.md +++ b/opensearch-ingestion/opensearch/README.md @@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/opensearch-serverless/kinesis-firehose/README.md b/opensearch-serverless/kinesis-firehose/README.md index 0f0feb73..fc0559c0 100644 --- a/opensearch-serverless/kinesis-firehose/README.md +++ b/opensearch-serverless/kinesis-firehose/README.md @@ -63,7 +63,7 @@ Now you are ready to synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/opensearch-serverless/search/README.md b/opensearch-serverless/search/README.md index 0ea6724c..1b271eca 100644 --- a/opensearch-serverless/search/README.md +++ b/opensearch-serverless/search/README.md @@ -57,7 +57,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/opensearch-serverless/time-series/README.md b/opensearch-serverless/time-series/README.md index 71ec6cf9..dcc368b6 100644 --- a/opensearch-serverless/time-series/README.md +++ b/opensearch-serverless/time-series/README.md @@ -57,7 +57,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/opensearch-serverless/vector-search/README.md b/opensearch-serverless/vector-search/README.md index 4b530152..e3bbc031 100644 --- a/opensearch-serverless/vector-search/README.md +++ b/opensearch-serverless/vector-search/README.md @@ -57,7 +57,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/opensearch-serverless/vpc-endpoint/README.md b/opensearch-serverless/vpc-endpoint/README.md index a2156a41..21d3911e 100644 --- a/opensearch-serverless/vpc-endpoint/README.md +++ b/opensearch-serverless/vpc-endpoint/README.md @@ -57,7 +57,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c vpc_name='your-existing-vpc-name' \ -c collection_name='collection-name' \ diff --git a/rds/aurora_mysql/README.md b/rds/aurora_mysql/README.md index 9393a472..2f8a7103 100644 --- a/rds/aurora_mysql/README.md +++ b/rds/aurora_mysql/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c vpc_name='your-existing-vpc-name' \ -c db_cluster_name='db-cluster-name' diff --git a/rds/aurora_postgresql/README.md b/rds/aurora_postgresql/README.md index 3e222615..3763db12 100644 --- a/rds/aurora_postgresql/README.md +++ b/rds/aurora_postgresql/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c vpc_name='your-existing-vpc-name' \ -c db_cluster_name='db-cluster-name' diff --git a/rds/mariadb/README.md b/rds/mariadb/README.md index 2ad8ee39..1890b4c1 100644 --- a/rds/mariadb/README.md +++ b/rds/mariadb/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --alldiff --git a/rds/postgresql/README.md b/rds/postgresql/README.md index a9385ca9..b6df8bfc 100644 --- a/rds/postgresql/README.md +++ b/rds/postgresql/README.md @@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth -c db_cluster_name='db-cluster-name' --alldiff --git a/rds/rds_proxy-aurora_mysql/README.md b/rds/rds_proxy-aurora_mysql/README.md index f2e950c0..800049fb 100644 --- a/rds/rds_proxy-aurora_mysql/README.md +++ b/rds/rds_proxy-aurora_mysql/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.$ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -$ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +$ export CDK_DEFAULT_REGION=$(aws configure get region) $ cdk -c vpc_name='your-existing-vpc-name' \ -c db_cluster_name='db-cluster-name>' synth --all diff --git a/rds/sagemaker-aurora_mysql/README.md b/rds/sagemaker-aurora_mysql/README.md index 6ba03ac0..b522bb32 100644 --- a/rds/sagemaker-aurora_mysql/README.md +++ b/rds/sagemaker-aurora_mysql/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -$ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +$ export CDK_DEFAULT_REGION=$(aws configure get region) $ cdk -c vpc_name='' -c db_cluster_name=' ' synth --all ``` diff --git a/redshift-serverless/README.md b/redshift-serverless/README.md index aff8aa55..6cb49729 100644 --- a/redshift-serverless/README.md +++ b/redshift-serverless/README.md @@ -52,7 +52,7 @@ At this point you can now synthesize the CloudFormation template for this code. (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c vpc_name='your-existing-vpc-name' \ -c aws_secret_name='your_redshift_secret_name' diff --git a/redshift-streaming-ingestion/from-kinesis/README.md b/redshift-streaming-ingestion/from-kinesis/README.md index 5abb835c..f39ca683 100644 --- a/redshift-streaming-ingestion/from-kinesis/README.md +++ b/redshift-streaming-ingestion/from-kinesis/README.md @@ -52,7 +52,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c vpc_name='your-existing-vpc-name' \ -c aws_secret_name='your_redshift_secret_name' diff --git a/redshift-streaming-ingestion/from-msk-serverless/README.md b/redshift-streaming-ingestion/from-msk-serverless/README.md index bcea12f8..c0be2d73 100644 --- a/redshift-streaming-ingestion/from-msk-serverless/README.md +++ b/redshift-streaming-ingestion/from-msk-serverless/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c vpc_name='your-existing-vpc-name' \ -c aws_secret_name='your_redshift_secret_name' diff --git a/redshift-streaming-ingestion/from-msk/README.md b/redshift-streaming-ingestion/from-msk/README.md index e9f72d21..1ede25ac 100644 --- a/redshift-streaming-ingestion/from-msk/README.md +++ b/redshift-streaming-ingestion/from-msk/README.md @@ -43,7 +43,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all \ -c vpc_name='your-existing-vpc-name' \ -c aws_secret_name='your_redshift_secret_name' diff --git a/redshift/cfn/README.md b/redshift/cfn/README.md index 5044e6df..f2cd4f3c 100644 --- a/redshift/cfn/README.md +++ b/redshift/cfn/README.md @@ -41,7 +41,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth \ -c vpc_name='your-existing-vpc-name' \ -c aws_secret_name=your_redshift_secret_name diff --git a/redshift/redshift_alpha/README.md b/redshift/redshift_alpha/README.md index 7f304988..2a6a7926 100644 --- a/redshift/redshift_alpha/README.md +++ b/redshift/redshift_alpha/README.md @@ -41,7 +41,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/sagemaker/inference-component/README.md b/sagemaker/inference-component/README.md index 6c58dacb..7a952624 100644 --- a/sagemaker/inference-component/README.md +++ b/sagemaker/inference-component/README.md @@ -124,7 +124,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/sagemaker/mlflow-ec2-sagemaker/README.md b/sagemaker/mlflow-ec2-sagemaker/README.md index c1e663bd..932a36dc 100644 --- a/sagemaker/mlflow-ec2-sagemaker/README.md +++ b/sagemaker/mlflow-ec2-sagemaker/README.md @@ -54,7 +54,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` @@ -62,7 +62,7 @@ Use `cdk deploy` command to create the stack shown above, ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk deploy --require-approval never --all ``` diff --git a/sagemaker/mlflow-ecs-sagemaker/README.md b/sagemaker/mlflow-ecs-sagemaker/README.md index 0cf28901..2c77a428 100644 --- a/sagemaker/mlflow-ecs-sagemaker/README.md +++ b/sagemaker/mlflow-ecs-sagemaker/README.md @@ -57,7 +57,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` @@ -65,7 +65,7 @@ Use `cdk deploy` command to create the stack shown above, ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk deploy --require-approval never --all ``` diff --git a/sagemaker/model-inference-endpoints/sagemaker-async-inference/hugging-face/README.md b/sagemaker/model-inference-endpoints/sagemaker-async-inference/hugging-face/README.md index 1b003a9e..57ef7388 100644 --- a/sagemaker/model-inference-endpoints/sagemaker-async-inference/hugging-face/README.md +++ b/sagemaker/model-inference-endpoints/sagemaker-async-inference/hugging-face/README.md @@ -53,7 +53,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/sagemaker/model-inference-endpoints/sagemaker-async-inference/jumpstart/README.md b/sagemaker/model-inference-endpoints/sagemaker-async-inference/jumpstart/README.md index d71e6973..e0822a06 100644 --- a/sagemaker/model-inference-endpoints/sagemaker-async-inference/jumpstart/README.md +++ b/sagemaker/model-inference-endpoints/sagemaker-async-inference/jumpstart/README.md @@ -71,7 +71,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/sagemaker/model-inference-endpoints/sagemaker-async-inference/pytorch/README.md b/sagemaker/model-inference-endpoints/sagemaker-async-inference/pytorch/README.md index e73f73af..b1c6fb9b 100644 --- a/sagemaker/model-inference-endpoints/sagemaker-async-inference/pytorch/README.md +++ b/sagemaker/model-inference-endpoints/sagemaker-async-inference/pytorch/README.md @@ -141,7 +141,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/hugging-face/README.md b/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/hugging-face/README.md index 074d2fb5..5c30372a 100644 --- a/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/hugging-face/README.md +++ b/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/hugging-face/README.md @@ -53,7 +53,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/jumpstart/README.md b/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/jumpstart/README.md index a63a4835..2a963dcb 100644 --- a/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/jumpstart/README.md +++ b/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/jumpstart/README.md @@ -71,7 +71,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/pytorch/README.md b/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/pytorch/README.md index e28d0c29..7579aa1b 100644 --- a/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/pytorch/README.md +++ b/sagemaker/model-inference-endpoints/sagemaker-realtime-inference/pytorch/README.md @@ -141,7 +141,7 @@ At this point you can now synthesize the CloudFormation template for this code. ``` (.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all ``` diff --git a/sagemaker/notebook/README.md b/sagemaker/notebook/README.md index e19b20e0..15dfc378 100644 --- a/sagemaker/notebook/README.md +++ b/sagemaker/notebook/README.md @@ -43,7 +43,7 @@ Let's check all CDK Stacks with `cdk list` command.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk list SageMakerNotebookVPCStack SageMakerNotebookStack diff --git a/sagemaker/studio-in-vpc/README.md b/sagemaker/studio-in-vpc/README.md index 1da465de..62e22d05 100644 --- a/sagemaker/studio-in-vpc/README.md +++ b/sagemaker/studio-in-vpc/README.md @@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth -c vpc_name='your-existing-vpc-name' \ -c sagmaker_jupyterlab_arn='default-JupterLab-image-arn'diff --git a/sagemaker/studio/README.md b/sagemaker/studio/README.md index b6dbda86..7108024c 100644 --- a/sagemaker/studio/README.md +++ b/sagemaker/studio/README.md @@ -47,7 +47,7 @@ At this point you can now synthesize the CloudFormation template for this code.(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth --all@@ -61,7 +61,7 @@ If you want to set `JupyterLab3` to the default JupyterLab, you can do like this(.venv) $ export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query Account --output text) -(.venv) $ export CDK_DEFAULT_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) +(.venv) $ export CDK_DEFAULT_REGION=$(aws configure get region) (.venv) $ cdk synth -c sagmaker_jupyterlab_arn='(optional) default-JupterLab-image-arn' --all