aws s3 mb s3://idevelop-lab5-<your_initials> --region <your_region> --profile aws-lab-env
Replace <your_initials> by your initials or other characters to create an Amazon S3 bucket whose name is unique.
Replace <your_region> by your Region code
You can create an Amazon S3 bucket to save website resource by AWS Console or the command line.
aws cloudformation describe-stacks --stack-name DevAx-05 --query "Stacks[].Outputs[*].[OutputKey,OutputValue]" --profile aws-lab-env
aws iot describe-endpoint --endpoint-type iot:Data-ATS --region <your_region> --profile aws-lab-env
Replace <your_region> by your Region code
aws s3 website s3://<bucket_name> --index-document sqs-standard.html --region <your_region> --profile aws-lab-env
Replace <bucket_name> by the name of the S3 bucket we created in step 1.
Replace <your_region> by your Region code.
From Step 8 to Step 10, the Public policy will be applied to your bucket for lab purpose only and this is a security risk. If you do not want to public your bucket and just want to public objects. Please skip to Step 11.
aws s3api put-bucket-policy --bucket <bucket_name> --policy file://bucket/policy.json --region <your_region> --profile aws-lab-env
Replace <bucket_name> by the name of the S3 bucket we created in step 1.
Replace <your_region> by your Region code.
aws s3 cp . s3://<bucket_name> --recursive --region <your_region> --profile aws-lab-env
Replace <bucket_name> by the name of the S3 bucket we created in step 1.
Replace <your_region> by your Region code.
aws s3 cp . s3://<bucket_name> --recursive --region <your_region> --profile aws-lab-env --acl public-read
Replace <bucket_name> by the name of the S3 bucket we created in step 1.
Replace <your_region> by your Region code.
http://<bucket_name>.s3-website-<your_region>.amazonaws.com/sqs-standard.html
Replace <bucket_name> by the name of the S3 bucket we created in step 1.
Replace <your_region> by your Region code.
The lab environment setup has configured the SQS queues used in this lab, using a CloudFormation template.
Four queues have been provisioned. Three are standard queues, and one is a FIFO queue. Here is a snippet of the CloudFormation template that provisioned these resources:
"idevelopDrawQueueFIFO": {
"Properties": {
"QueueName": "idevelop_drawqueue.fifo",
"FifoQueue": true,
"ContentBasedDeduplication": true
},
"Type": "AWS::SQS::Queue"
},
"idevelopDrawQueueStandard1": {
"Properties": {
"QueueName": "idevelop_drawqueue_1"
},
"Type": "AWS::SQS::Queue"
}
As you can see, it is very easy to use CloudFormation to declare your SQS infrastructure. You can also use the Create New Queue button in the AWS Console to create a queue manually.