Skip to content

Demo on how to deploy on AWS RDS (MySQL) in a Docker container using Terraform.

Notifications You must be signed in to change notification settings

leticiavalladares/movie_management_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movie Management Project

Status

Terraform deployment for movie

Providers

Name Version
aws 4.33.0

Modules

No modules.

Resources

Name Type
aws_db_instance.movie_db resource
aws_db_subnet_group.db_sg resource
aws_eip.nat_eip resource
aws_iam_openid_connect_provider.default resource
aws_iam_role.github_actions resource
aws_iam_role_policy_attachment.github_actions_atch resource
aws_instance.pub_server resource
aws_internet_gateway.ig_vpc resource
aws_nat_gateway.nat_vpc resource
aws_route_table.rt_priv_subnet_1 resource
aws_route_table.rt_priv_subnet_2 resource
aws_route_table.rt_pub_subnet resource
aws_route_table_association.priv_assoc_1 resource
aws_route_table_association.priv_assoc_2 resource
aws_route_table_association.pub_assoc resource
aws_security_group.bastion_host_sg resource
aws_security_group.db_movie_sg resource
aws_subnet.priv_subnet_1 resource
aws_subnet.priv_subnet_2 resource
aws_subnet.pub_subnet resource
aws_vpc.vpc resource
aws_ami.aws_basic_linux data source
aws_iam_policy_document.github_assume_role_policy data source
aws_secretsmanager_secret.movie_db_secret data source
aws_secretsmanager_secret_version.movie_db_pw data source

Inputs

Name Description Type Default Required
aws_ami_name Name of the ami I want for my project string n/a yes
aws_ec2_type Type of the ec2 instance (storage size) string n/a yes
aws_owner_id Contains the Owner ID of the ami for amazon linux string n/a yes
aws_priv_subnet_cidr_block_1 IP range for the private subnet 1 string n/a yes
aws_priv_subnet_cidr_block_2 IP range for the private subnet 2 string n/a yes
aws_pub_subnet_cidr_block IP range for the public subnet string n/a yes
aws_vpc_cidr_block IP range for the vpc string n/a yes
db_engine The DB engine to run on our RDS string n/a yes
db_engine_version The version of the db engine string n/a yes
db_instance_class Instance type for the db string n/a yes
db_name Name of the db any n/a yes
db_skip_last_snapshot Before destroying the instance skip snapshot or not bool true no
db_storage Db storage any n/a yes
db_username Username to connect to the DB string n/a yes
my_keypair My SSH keypair string n/a yes
my_local_pub_ip My local public address string n/a yes

Outputs

No outputs.

About

Demo on how to deploy on AWS RDS (MySQL) in a Docker container using Terraform.

Topics

Resources

Stars

Watchers

Forks