AWS CSAA S3
On this page, you’ll find the demo related to the AWS S3 service. You can, for example, see how a s3 bucket is created through command line, how to easily host a static website or configure versioning.
AWS CLI
Create a bucket
In this demo, we will create a bucket and upload a simple file to it using az-cli
- Create the bucket
aws s3 mb s3://{MyUniqueBucketName}
- View the bucket
aws s3 ls
- Upload a file
aws s3 cp {myfile} s3://{MyUniqueBucketName}
- View your bucket’s content
aws s3 ls s3://{MyUniqueBucketName}
- Download a file
aws s3 cp s3://{MyUniqueBucketName}/{myfile}
AWS Console
Static website
- Create a Bucket
- Upload your static website
- Enable Static Website Hosting
- Go to properties
- Open Static website hosting
- Chose use this bucket to host a website
- Enter the name of the index page (e.g. index.html)
- If required, enter the name of the error page (e.g. error.html)
- Save
- In the same panel, you can see the Endpoint of your website
- Open the endpoint: You receive an error. It is expected as the files are not publicly visible by default
- Go back to the list of files in your bucket
- Select all the files related to your web site
- In Actions, select Make Public
- Open your endpoint again, your website should appear!
If you are interested, you can read more on the subject in AWS documentation
Create versioning
- Create a Bucket
- Enable Versioning.
- Go to properties,
- Open Versioning property,
- Click on enable versioning and save,
- Upload an object and validate it is availables.
- Modify the object and view the multiple version.
- Soft-Delete the object and view the delete flag on latest version.
- Delete all version of the object to delete it.
If you are interested, you can read more on the subject in AWS documentation
Comments