Code Monkey home page Code Monkey logo

vpc_endpoint_gateway_s3's Introduction

#Project: VPC Endpoint S3 Gateway ##Architecture vpc_endpoint_s3_gateway

Requirements

Name Version
aws ~> 3.70
local 2.1.0
tls 3.1.0

Providers

Name Version
aws 3.70.0
local 2.1.0
tls 3.1.0

Modules

No modules.

Resources

Name Type
aws_eip.eip resource
aws_iam_instance_profile.instance_profile resource
aws_iam_role.instance_profile_role resource
aws_iam_role_policy.instance_profile_role_policy resource
aws_instance.private_instance resource
aws_instance.public_instance resource
aws_internet_gateway.internet_gateway resource
aws_key_pair.key_pair resource
aws_route_table.private_route_table resource
aws_route_table.public_route_table resource
aws_route_table_association.private_route_table_mapping resource
aws_route_table_association.public_route_table_mapping resource
aws_s3_bucket.bucket resource
aws_s3_bucket_public_access_block.pab resource
aws_security_group.private_sg resource
aws_security_group.public_sg resource
aws_subnet.private_subnet resource
aws_subnet.public_subnet resource
aws_vpc.vpc resource
aws_vpc_endpoint.s3 resource
aws_vpc_endpoint_route_table_association.vpce_route_table_mapping resource
local_file.key resource
tls_private_key.private_key resource

Inputs

Name Description Type Default Required
all_traffic all traffic to public string "0.0.0.0/0" no
ami AMI ID for ec2 instance, this value changes for each region string "ami-0ed9277fb7eb570c9" no
az Availability zone for subnet(a,b,c,d,e,f) string "a" no
private_subnet_cidr CIDR for private subnet string "10.0.1.0/24" no
public_subnet_cidr CIDR for public subnet string "10.0.0.0/24" no
region AWS region for provider string "us-east-1" no
vpc_cidr VPC CIDR string "10.0.0.0/16" no

Outputs

Name Description
private_ip n/a
public_ip n/a

Example output

#public instance 
 ssh -i narenkp.pem [email protected]
Last login: Mon Jan  3 11:39:23 2022 from 104.145.93.107

       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-2/
[ec2-user@ip-10-0-0-148 ~]$ aws s3 ls 
2022-01-03 11:20:08 sample-bucket-20220102050000
2022-01-03 11:48:26 this-is-another-bucket
[ec2-user@ip-10-0-0-148 ~]$ echo "hey how are you ?"> b.txt
[ec2-user@ip-10-0-0-148 ~]$ aws s3 cp b.txt s3://sample-bucket-20220102050000/
upload: ./b.txt to s3://sample-bucket-20220102050000/b.txt        
[ec2-user@ip-10-0-0-148 ~]$ aws s3 cp b.txt s3://this-is-another-bucket/
upload: ./b.txt to s3://this-is-another-bucket/b.txt              
#able to upload file

#private Instance
[ec2-user@ip-10-0-0-148 ~]$ ssh -i narenkp.pem [email protected]
Last login: Mon Jan  3 11:39:28 2022 from 10.0.0.148

       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-2/
[ec2-user@ip-10-0-1-223 ~]$ aws s3 ls
2022-01-03 11:20:08 sample-bucket-20220102050000
2022-01-03 11:48:26 this-is-another-bucket
[ec2-user@ip-10-0-1-223 ~]$ echo "some text" > c.txt
[ec2-user@ip-10-0-1-223 ~]$ aws s3 cp c.txt s3://sample-bucket-20220102050000/
upload: ./c.txt to s3://sample-bucket-20220102050000/c.txt        
[ec2-user@ip-10-0-1-223 ~]$ aws s3 cp c.txt s3://this-is-another-bucket/
upload failed: ./c.txt to s3://this-is-another-bucket/c.txt An error occurred (AccessDenied) when calling the PutObject operation: Access Denied
[ec2-user@ip-10-0-1-223 ~]$ 
#unable to able to upload file

vpc_endpoint_gateway_s3's People

Contributors

npinnaka avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.