- VPC
- Public Subnets
- Private Subnet
- Secure/DB Subnets
- EC2 server with Docker engine and make package installed,IAM policy with SSM and Administrator permissions
- Default IAM policies required for Terraform provisioning.
Copy the files to local machine and execute below commands.
terraform init
terraform plan
terraform apply
Name | Version |
---|---|
terraform | >= 1.3.0 |
aws | 4.52.0 |
Name | Version |
---|---|
aws | 4.52.0 |
Name | Source | Version |
---|---|---|
ec2-jenkins | git::https://github.com/tothenew/terraform-aws-jenkins.git | v0.0.1 |
iam_roles | git::https://github.com/tothenew/terraform-aws-identity.git | v0.1.1 |
network | git::https://github.com/tothenew/terraform-aws-vpc.git | v0.2.0 |
terraform_ec2_agent | git::https://github.com/tothenew/terraform-aws-agent.git | v0.1.0 |
Name | Type |
---|---|
aws_s3_bucket.s3_backend | resource |
aws_subnets.private | data source |
aws_subnets.public | data source |
aws_subnets.secure | data source |
aws_vpc.selected | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
vpc_name | The VPC Subnet IDs to launch in | string |
"nonprod" |
no |
Name | Description |
---|---|
Infra_Deploy_Role | admin role arn |
terraform_agent_instance_id | terraform instance id |
Module managed by TO THE NEW Pvt. Ltd.
Apache 2 Licensed. See LICENSE for full details.