Need help with your Cloud builds GET IN TOUCH.
Simple module that creates a CodeDeploy application, deployment group & associates the deployment group with an ASG.
Upon launching the stack the following resources will be created:
- CodeDeploy application
- CodeDeploy deployment group ( Associated with an ASG )
- s3 Bucket ( with lifecycle rule by default )
- IAM role granting CodeDeploy access AutoScaling
- Terraform v0.12.18 +
- AWS account
| Variable | Meaning |
|---|---|
tags |
Tags map. |
autoscaling_groups |
The id of the AutoScaling Groups with which to associate the deployment. |
compute_platform |
Compute platform type. ECS, Lambda, or Server. |
name |
Application name |
lifecycle_rule_enabled |
Whether or not to enable s3 lifecycle rule ( Default is to expire items after 120 days ) |
expiration |
Specifies number of days after which s3 objects will expire |
deployment_config_name |
Deployment config name. See: https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html |
data_bucket_name |
Name for the s3 data bucket |
- codedeploy_app
- codedeploy_deployment_group
To import the module add the following to the environment TF file:
module "codedeploy" {
source = "git::https://github.com/Cloud-42/terraform-aws-codedeploy.git"
}
- To initialise the module run: terraform init
- To update the module run : terraform get --update
- To see a plan of changes : terraform plan
- To apply : terraform apply