cloudposse / terraform-aws-code-deploy Goto Github PK
View Code? Open in Web Editor NEWTerraform module to provision AWS Code Deploy app and group.
Home Page: https://cloudposse.com/accelerate
License: Apache License 2.0
Terraform module to provision AWS Code Deploy app and group.
Home Page: https://cloudposse.com/accelerate
License: Apache License 2.0
Hi Team,
Unable to pull the module using the tag version. However the same reference works fine with branch name.Can help to check this .
When not setting auto_rollback_configuration_events, plan will always show a perpetual diff of
+ auto_rollback_configuration {
+ enabled = false
+ events = [
+ "",
]
}
Plan should not show diff when not setting auto_rollback_configuration.
auto_rollback_configuration_events not set, = null or =""
Setup required values
Run apply
Run plan
It will show a diff even though nothing is changing
Note: I do not think this is relevant, but we are calling the module using a foreach to make several codedeploy_applications.
This clutters the plan and also has a side affect of calling UpdateDeploymentGroup api which will add a message to every SQS queue "Subject" : "SUCCESS: AWS CodeDeploy notification setup for trigger {deploymentGroupName}". In our case we have an DeploymentFailure queue setup and this shows as a failed deployment. We are going to work around that issue with a custom subscription with a filter and put in a separate issue to address it in this module's aws_sns_topic_subscription to allow adding filters.
Found a bug? Maybe our Slack Community can help.
I am trying to use your module for the following EC2 deployment. I get an issue when I try to use the ec2_tag_filter variable. When I run the plan, I get:
│ Error: Invalid function argument
│
│ on .terraform/modules/code-deploy-stargate-frontend/main.tf line 179, in resource "aws_codedeploy_deployment_group" "default":
│ 179: key = lookup(ec2_tag_set.value, "key", null)
│ ├────────────────
│ │ ec2_tag_set.value is list of object with 1 element
│
│ Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
╵
╷
│ Error: Invalid function argument
│
│ on .terraform/modules/code-deploy-stargate-frontend/main.tf line 180, in resource "aws_codedeploy_deployment_group" "default":
│ 180: type = lookup(ec2_tag_set.value, "type", null)
│ ├────────────────
│ │ ec2_tag_set.value is list of object with 1 element
│
│ Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
╵
╷
│ Error: Invalid function argument
│
│ on .terraform/modules/code-deploy-stargate-frontend/main.tf line 181, in resource "aws_codedeploy_deployment_group" "default":
│ 181: value = lookup(ec2_tag_set.value, "value", null)
│ ├────────────────
│ │ ec2_tag_set.value is list of object with 1 element
│
│ Invalid value for "inputMap" parameter: lookup() requires a map as the first argument.
╵
I expect the Plan to run!
Code:
module "code-deploy-stargate-frontend" {
source = "cloudposse/code-deploy/aws"
version = "0.1.1"
delimiter = "-"
deployment_style = {
deployment_option = "WITHOUT_TRAFFIC_CONTROL"
deployment_type = "IN_PLACE"
}
ec2_tag_filter = [
{
key = "Service"
type = "KEY_AND_VALUE"
value = "test"
},
]
enabled = true
label_value_case = "upper"
name = "test"
minimum_healthy_hosts = {
type = "HOST_COUNT"
value = "1"
}
compute_platform = "Server"
service_role_arn = "code-deploy-test"
create_default_service_role = true
}
If applicable, add screenshots or logs to help explain your problem.
Anything that will help us triage the bug will help. Here are some ideas:
Add any other context about the problem here.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
main.tf
cloudposse/sns-topic/aws 0.20.1
versions.tf
aws >= 2.0
local >= 1.2
hashicorp/terraform >= 1.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.