Comments (3)
I was able to replicate the behavior on resource awscc_ecs_task_definition
.
It seemed that these attributes that forces replacement are declared in the Terraform state file as null
. On contrary, CCAPI GetResource is returning an empty value or empty list.
I suspect this is related to #1139
from terraform-provider-awscc.
I also tried to set up the default values stored in the state file but still forces replacement
resource "awscc_ecs_task_definition" "db_task_definition" {
container_definitions = [
{
name = "${var.environment}-${var.application}-db"
image = "postgres:15"
port_mappings = [{
name = "${var.environment}-${var.application}-db-port"
container_port = 5432
protocol = "tcp"
}]
log_configuration = {
log_driver = "awslogs"
options = {
awslogs-group = "${var.environment}-${var.application}-db-log-group"
awslogs-region = "${var.aws_region}"
awslogs-stream-prefix = "ecs"
}
}
environment = [
{
name = "POSTGRES_DB"
value = "${data.aws_ssm_parameter.db_name.value}"
},
{
name = "POSTGRES_PASSWORD"
value = "${data.aws_ssm_parameter.db_password.value}"
},
{
name = "POSTGRES_USER"
value = "${data.aws_ssm_parameter.db_username.value}"
},
]
mount_points = [
{
source_volume = "${var.environment}-${var.application}-db-volume",
container_path = "/var/lib/postgresql",
read_only = false
}
]
}
]
cpu = 256
ephemeral_storage = {
size_in_gi_b = 30
}
execution_role_arn = aws_iam_role.db_execution_role.arn
family = "${var.environment}-${var.application}-db-task-definition"
inference_accelerators = null
ipc_mode = null
memory = 512
network_mode = "awsvpc"
pid_mode = null
placement_constraints = null
proxy_configuration = null
requires_compatibilities = [
"FARGATE",
]
runtime_platform = {
cpu_architecture = "X86_64"
operating_system_family = "LINUX"
}
tags = null
task_role_arn = aws_iam_role.db_task_role.arn
volumes = [
{
configured_at_launch = true
docker_volume_configuration = null
efs_volume_configuration = null
host = null
name = "${var.environment}-${var.application}-db-volume"
}
]
}
from terraform-provider-awscc.
Problem with resource awscc_ecs_service
also seemed to stem from the same behavior as described in #1139
from terraform-provider-awscc.
Related Issues (20)
- awscc_rds_db_cluster does not support aurora-postgresql engine due to forced backtrack_window HOT 1
- The plugin6.(*GRPCProvider).ConfigureProvider request was cancelled. HOT 1
- AWSCC provider now panics if 'optional' duration not set in assume-role HOT 1
- Resource `awscc_rds_db_instance` cannot create DB instance due to forced promotion_tier HOT 1
- Query on Support for Pod-Level Actions in EKS Clusters via AWS FIS HOT 4
- awscc_ecr_repository_creation_template: response fields are null after creation failing run HOT 1
- awscc_lightsail_database: Database deleted but provider returns an InvalidRequest error on destroy
- awscc_lightsail_instance: Perpetual changes on apply without config change, update does not complete HOT 1
- awscc_lightsail_certificate: Dummy resource description presumably obtained from CloudFormation schema HOT 2
- awscc_lightsail_alarm: Wrong description for the `monitored_resource_name` argument HOT 2
- awscc_autoscaling_auto_scaling_group - vpc_zone_identifer values order can triggers drift
- awscc_batch_scheduling_policy: weightfactor returned by CloudControl API doesn't match configuration/console HOT 1
- awscc_securityhub_configuration_policy: Creation fails with InvalidRequest even with all attrs/args provided HOT 2
- Add incrementalRunConfig to awscc_entityresolution_matching_workflow HOT 1
- awscc_ecr_repository_creation_template aws api return 400; The type 'AWS::ECR::RepositoryCreationTemplate' cannot be found. HOT 7
- Custom service endpoint configuration HOT 1
- Create Terraform for AWS APIs Related to Amazon QuickSight Export / Import Job(s) HOT 2
- When the tags in awscc_chatbot_slack_channel_configuration are not set,apply does not finish. HOT 4
- Build with Go v1.22.4
- awscc_sagemaker_domain stuck in modifying state on consecutive applies
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-awscc.