https://github.com/luciaheredia/aws-cli-vpcpeering-s3
AWS CLI Script for establishing VPC peering and using S3.
https://github.com/luciaheredia/aws-cli-vpcpeering-s3
aws aws-cli aws-s3 aws-vpc-endpoint aws-vpc-peering
Last synced: 7 months ago
JSON representation
AWS CLI Script for establishing VPC peering and using S3.
- Host: GitHub
- URL: https://github.com/luciaheredia/aws-cli-vpcpeering-s3
- Owner: LuciaHeredia
- Created: 2025-03-08T13:05:37.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-03-08T14:14:44.000Z (7 months ago)
- Last Synced: 2025-03-08T15:23:53.315Z (7 months ago)
- Topics: aws, aws-cli, aws-s3, aws-vpc-endpoint, aws-vpc-peering
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# (In progress...)
## Introduction:
This is a guide for creating a **VPC Peering**, launching **EC2 Instances** and creating a **VPC endpoint** for **S3 Bucket Storage** and uploading to it.> The *destoy-script* is meant for deleting all that we created, with the help of a *.conf* file that stores all temporary variables (ID, ARN).
## Script Steps:
1. Create a new **VPC**.
2. TODO: Establish **VPC Peering**:
- Create a VPC peering connection between the default VPC and the new VPC.
- Ensure the peering connection status is active.
3. TODO: Launch **EC2 Instances**:
- Create a private subnet within the new VPC for the first EC2 instance.
- Create a public subnet within the new VPC for the second EC2 instance.
- Launch an EC2 instance in the private subnet.
- Launch another EC2 instance in the public subnet.
- SSH from the public EC2 instance to the private EC2 instance using the public IP or DNS.
4. TODO: Create an **S3 Bucket**:
- Create an S3 bucket using the AWS Management Console or AWS CLI.
5. TODO: **VPC Endpoint** for **S3**:
- Create a VPC endpoint for S3 in the private subnet.
- Update the route tables for the private subnet to route S3 traffic through the VPC endpoint.
6. TODO: Upload File to **S3**:
- From the EC2 instance in the private subnet, use the AWS CLI to attempt to upload a file to the S3 bucket.
> Note: Don’t create a nat gateway, the private subnet should only reach s3.