Skip to content

Infrastructure as code using AWS CDK to deploy an EC2 instance with just one command. This project allows to quickly deploy an EC2 instance for playing around without incurring in bigger costs

License

gabotechs/free-ec2-instance

Repository files navigation

Free Ec2 instance

Deploy an instance in AWS for you to play around.

NOTE: ⚠️ This project will deploy a t4g.micro ec2 instance in the configured account, last time I checked, that was free, but make sure to check it again.

Install

Clone the project

git clone https://github.com/gabotechs/free-ec2-instance
cd free-ec2-instance

Install the dependencies

yarn install

create a .env file with your credentials in the root of the project, next to the package.json file

AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your-access-key-id
AWS_SECRET_ACCESS_KEY=your-access-key-secret

Deploy

Deploy the new EC2 instance

yarn deploy

It should take a couple of minutes. After the deployment is completed, you can connect to your instance with:

yarn connect

Destroy

Whenever you want to tear down the EC2 instance just use:

yarn destroy

Disclaimer

NOTE: ⚠️ The contributors of this project are not responsible for costs created in your AWS account, people that use this project are responsible for their own AWS costs.

About

Infrastructure as code using AWS CDK to deploy an EC2 instance with just one command. This project allows to quickly deploy an EC2 instance for playing around without incurring in bigger costs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published