Comments (4)
Hi there,
I can't comment on your particular bug but it would be easier to accomplish what you're doing by using jsonencode for the container defintion rather than a templatefile
e.g.
container_definitions = jsonencode([
{
name = var.webapp_name,
image = var.webapp_image
essential = true
environment = [
{
name = "VARIABLE"
value = var.variable_value
}
]
linuxParameters = {
initProcessEnabled = true
}
logConfiguration = {
logDriver = "awslogs"
options = {
awslogs-group = "${local.resource_prefix}-${var.webapp_name}"
awslogs-region = data.aws_region.current.name
awslogs-stream-prefix = var.webapp_name
}
}
portMappings = [
{
containerPort = var.webapp_port
protocol = "tcp"
}
]
ulimits = [
{
softLimit = 32768,
hardLimit = 32768,
name = "nofile"
}
]
}
])
from terraform-provider-aws.
Community Note
Voting for Prioritization
- Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
- Please see our prioritization guide for information on how we prioritize.
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
- If you are interested in working on this issue, please leave a comment.
- If this would be your first contribution, please review the contribution guide.
from terraform-provider-aws.
Hey @tdupoiron 👋 Thank you for taking the time to raise this! In this case, I'd definitely recommend using jsonencode()
, as mentioned above. Outside of that, this looks like an error related to the configuration / template rather than a bug with the provider. If you'd like to troubleshoot the templatefile()
method further, you'd be better served at the AWS Provider forum, where there's a network of people willing to help. With that in mind, I'm going to close this issue.
from terraform-provider-aws.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
from terraform-provider-aws.
Related Issues (20)
- [Bug]: Constant drift with empty tags for framework resources HOT 3
- [Docs]: resource aws_cloudfront_response_headers_policy with argument `remove_headers_config` needs an example for ease of use HOT 1
- [Bug]: Cognito user must be replaced after provider upgrade HOT 4
- [Bug]: Destruction and replacement of aws_cognito_users after migrating to 5.56.0 HOT 4
- [Bug]: 'aws_docdb_cluster_snapshot' Identifier Restriction [Solved by using correct way 'aws_docdb_cluster' - snapshot_identifier] HOT 4
- [Bug]: aws_sns_topic fails to plan if the deployed resource policy references IAM roles which have been deleted or recreated HOT 2
- [Bug]: missing dns_name in aws_fsx_ontap_file_system HOT 7
- [Docs]: resource aws_eks_cluster has an argument bootstrap_cluster_creator_admin_permissions with incorrect default HOT 4
- [Docs]: It was not mentioned that cidr_blocks and security_groups are ORed HOT 1
- [Bug]: The resource in module is created without `default_tags` HOT 1
- [New Resource]: Create AWS Lambda Function Test Event Resource HOT 1
- [Bug]: aws_cognito_user_pool being created with non-standard birthdate schema HOT 22
- [Enhancement]: Add option to modify enclave settings of an existing ec2 HOT 1
- Unable to connect to MongoDB from GitHUB action runner(Ubuntu_Latest). HOT 4
- [Bug]: creating S3 backed aws_appconfig_configuration_profile hits IAM trying to assume role error HOT 5
- [Enhancement]: Disable account level suppression list in configuration set for SESv2. HOT 3
- [Bug]: aws_ecs_task_definition outputs container definitions in different order to input HOT 1
- [Bug]: aws_elasticache_replication_group auth_token_update_strategy updated to default ROTATE despite being null/unspecified in config during import HOT 1
- [Enhancement]: Support secret manager as authentication source for Data Firehose HOT 1
- [Bug]: Constant diff on update or error on creation of aws_ce_cost_category HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-aws.