Skip to content

Commit c9a12b0

Browse files
hugoalmeida264boldlinksig
andauthored
feat: fix the actions trigger for 1.13.0 (#45)
* feat: fix the actions trigger for 1.13.0 * fix: pre-commit fixes * fix: add 2.5.1 version * [Boldlinksig]: Pre-commit auto updated files on 04-07-2025 08:55:39. --------- Co-authored-by: boldlinksig <boldlinksig@boldlink.io>
1 parent e298362 commit c9a12b0

File tree

12 files changed

+41
-30
lines changed

12 files changed

+41
-30
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323
- feat: expand volume block of the task definition as it has more configuration
2424
- feat: Add example for service security group using a security group id for `service_ingress_sg`
2525

26+
2627
## [1.13.0] - 2025-07-03
2728
### Changes
2829
- fix: deprecated data.aws_region.current.name attribute by upgrading cluster module to v3.0.0

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ module "ecs_service" {
186186

187187
| Name | Version |
188188
|------|---------|
189-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.51.1 |
190-
| <a name="provider_tls"></a> [tls](#provider\_tls) | 4.0.5 |
189+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 6.2.0 |
190+
| <a name="provider_tls"></a> [tls](#provider\_tls) | 4.1.0 |
191191

192192
## Modules
193193

@@ -242,6 +242,7 @@ No modules.
242242
| <a name="input_associate_with_waf"></a> [associate\_with\_waf](#input\_associate\_with\_waf) | Whether to associate created ALB with AWS WAFv2 ACL | `bool` | `false` | no |
243243
| <a name="input_associate_with_wafregional"></a> [associate\_with\_wafregional](#input\_associate\_with\_wafregional) | Whether to associate created ALB with WAF Regional Web ACL | `bool` | `false` | no |
244244
| <a name="input_autoscale_role_arn"></a> [autoscale\_role\_arn](#input\_autoscale\_role\_arn) | (Optional) The ARN of the IAM role that allows Application AutoScaling to modify your scalable target on your behalf. | `string` | `null` | no |
245+
| <a name="input_capacity_provider_strategy"></a> [capacity\_provider\_strategy](#input\_capacity\_provider\_strategy) | (Optional) Set of capacity provider strategies to use for the service. Can be one or more. List of maps with the following keys:<br><br>capacity\_provider\_strategy = [{<br> capacity\_provider = string # Name of the capacity provider (FARGATE, FARGATE\_SPOT, or custom EC2 capacity provider)<br> weight = number # Relative percentage of the total number of launched tasks that should use the specified capacity provider<br> base = number # Number of tasks, at a minimum, to run on the specified capacity provider<br>}]<br><br>Note: Cannot be used in conjunction with launch\_type. If capacity\_provider\_strategy is specified, launch\_type will be ignored. | <pre>list(object({<br> capacity_provider = string<br> weight = number<br> base = number<br> }))</pre> | `[]` | no |
245246
| <a name="input_cluster"></a> [cluster](#input\_cluster) | Amazon Resource Name (ARN) of cluster which the service runs on | `string` | `null` | no |
246247
| <a name="input_container_definitions"></a> [container\_definitions](#input\_container\_definitions) | Container definitions provided as valid JSON document. Default uses golang:alpine running a simple hello world. | `string` | `null` | no |
247248
| <a name="input_cpu"></a> [cpu](#input\_cpu) | Number of cpu units used by the task. If the requires\_compatibilities is FARGATE this field is required. | `number` | `256` | no |
@@ -267,7 +268,7 @@ No modules.
267268
| <a name="input_lb_ingress_rules"></a> [lb\_ingress\_rules](#input\_lb\_ingress\_rules) | Ingress rules to add to the load balancer security group. The rules defined here will be used by service security group<br><br>lb\_ingress\_rules = [{<br> from\_port = number<br> to\_port = number<br> protocol = string<br> description = string<br> cidr\_blocks = list(string)<br> }] | `list(any)` | `[]` | no |
268269
| <a name="input_listener_port"></a> [listener\_port](#input\_listener\_port) | (Required) The port to listen on for the load balancer | `number` | `80` | no |
269270
| <a name="input_listener_protocol"></a> [listener\_protocol](#input\_listener\_protocol) | (Required) The protocol to listen on. Valid values are HTTP, HTTPS, TCP, or SSL | `string` | `"HTTP"` | no |
270-
| <a name="input_load_balancer"></a> [load\_balancer](#input\_load\_balancer) | (Optional) Configuration block for load balancers, accepts the following arguments:<br><br>load\_balancer = [{<br> container\_name = string # Name of the container to associate with the load balancer<br> container\_port = number # Port number the container listens on<br> target\_group\_arn = string # ARN of the target group to associate with the load balancer when using an external Alb/NLB<br>}] | `any` | `[]` | no |
271+
| <a name="input_load_balancer"></a> [load\_balancer](#input\_load\_balancer) | (Optional) Configuration block when you use a external load balancer, ex shared LB, accepts the following arguments:<br><br>load\_balancer = [{<br> container\_name = string<br> container\_port = number<br> target\_group\_arn = string<br>}] | `any` | `[]` | no |
271272
| <a name="input_load_balancer_type"></a> [load\_balancer\_type](#input\_load\_balancer\_type) | (Optional) The type of load balancer to create. Possible values are application, gateway, or network. The default value is application. | `string` | `"application"` | no |
272273
| <a name="input_matcher"></a> [matcher](#input\_matcher) | (May be required) Response codes to use when checking for a healthy responses from a target. You can specify multiple values (for example, 200,202 for HTTP(s)) | `string` | `null` | no |
273274
| <a name="input_max_capacity"></a> [max\_capacity](#input\_max\_capacity) | (Required) The max capacity of the scalable target. | `number` | `2` | no |
@@ -282,7 +283,7 @@ No modules.
282283
| <a name="input_retention_in_days"></a> [retention\_in\_days](#input\_retention\_in\_days) | Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653, and 0. If you select 0, the events in the log group are always retained and never expire. | `number` | `3653` | no |
283284
| <a name="input_scalable_dimension"></a> [scalable\_dimension](#input\_scalable\_dimension) | (Required) The scalable dimension of the scalable target. | `string` | `""` | no |
284285
| <a name="input_scheduled_actions"></a> [scheduled\_actions](#input\_scheduled\_actions) | Scheduled actions to apply to the ecs scalable target. | <pre>list(object({<br> name = string<br> schedule = string<br> min_capacity = number<br> max_capacity = number<br> timezone = string<br> }))</pre> | `[]` | no |
285-
| <a name="input_self_signed_cert_common_name"></a> [self\_signed\_cert\_common\_name](#input\_self\_signed\_cert\_common\_name) | Distinguished name | `string` | `"devboldlink.wpengine.com"` | no |
286+
| <a name="input_self_signed_cert_common_name"></a> [self\_signed\_cert\_common\_name](#input\_self\_signed\_cert\_common\_name) | Distinguished name | `string` | `"devboldlink.boldlink.io"` | no |
286287
| <a name="input_self_signed_cert_organization"></a> [self\_signed\_cert\_organization](#input\_self\_signed\_cert\_organization) | The organization owning this self signed certificate | `string` | `"Boldlink-SIG"` | no |
287288
| <a name="input_service_ingress_rules"></a> [service\_ingress\_rules](#input\_service\_ingress\_rules) | Ingress rules to add to the service security group.<br><br> service\_ingress\_rules = [{<br> from\_port = number<br> to\_port = number<br> protocol = string<br> description = string<br> cidr\_blocks = list(string)<br> }] | `list(any)` | `[]` | no |
288289
| <a name="input_service_ingress_rules_sg"></a> [service\_ingress\_rules\_sg](#input\_service\_ingress\_rules\_sg) | Ingress rules to add to the service security group.<br><br> service\_ingress\_rules = [{<br> from\_port = number<br> to\_port = number<br> protocol = string<br> description = string<br> source\_security\_group\_id = string<br> }] | `list(any)` | `[]` | no |

examples/complete/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,31 @@ To test the deployment, follow these steps:
3434
|------|---------|
3535
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.14.11 |
3636
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0.0 |
37+
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.0.0 |
3738

3839
## Providers
3940

4041
| Name | Version |
4142
|------|---------|
42-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.51.1 |
43+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 6.2.0 |
44+
| <a name="provider_random"></a> [random](#provider\_random) | 3.7.2 |
4345

4446
## Modules
4547

4648
| Name | Source | Version |
4749
|------|--------|---------|
48-
| <a name="module_access_logs_bucket"></a> [access\_logs\_bucket](#module\_access\_logs\_bucket) | boldlink/s3/aws | 2.3.1 |
50+
| <a name="module_access_logs_bucket"></a> [access\_logs\_bucket](#module\_access\_logs\_bucket) | boldlink/s3/aws | 2.5.1 |
4951
| <a name="module_ecs_service_alb"></a> [ecs\_service\_alb](#module\_ecs\_service\_alb) | ../../ | n/a |
52+
| <a name="module_ecs_service_fargate_spot"></a> [ecs\_service\_fargate\_spot](#module\_ecs\_service\_fargate\_spot) | ../../ | n/a |
5053
| <a name="module_ecs_service_nlb"></a> [ecs\_service\_nlb](#module\_ecs\_service\_nlb) | ../../ | n/a |
5154
| <a name="module_waf_acl"></a> [waf\_acl](#module\_waf\_acl) | boldlink/waf/aws | 1.0.3 |
5255

5356
## Resources
5457

5558
| Name | Type |
5659
|------|------|
60+
| [random_id.bucket_suffix](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/id) | resource |
61+
| [random_string.suffix](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) | resource |
5762
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
5863
| [aws_ecs_cluster.ecs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ecs_cluster) | data source |
5964
| [aws_elb_service_account.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/elb_service_account) | data source |

examples/complete/data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ data "aws_vpc" "supporting" {
121121
name = "tag:Name"
122122
values = [var.supporting_resources_name]
123123
}
124-
124+
125125
filter {
126126
name = "state"
127127
values = ["available"]

examples/complete/main.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "random_string" "suffix" {
1010

1111
module "access_logs_bucket" {
1212
source = "boldlink/s3/aws"
13-
version = "2.3.1"
13+
version = "2.5.1"
1414
bucket = local.bucket
1515
force_destroy = var.force_destroy
1616
sse_sse_algorithm = "AES256" # For production use aws:kms with your CMK and the proper key policy allowing ebs account to use the cmk
@@ -214,21 +214,21 @@ module "ecs_service_fargate_spot" {
214214
name = "${var.name}-fargate-spot-service"
215215
family = "${var.name}-fargate-spot-task-definition"
216216
enable_execute_command = var.enable_execute_command
217-
217+
218218
# Use capacity provider strategy instead of launch_type for FARGATE_SPOT
219219
capacity_provider_strategy = [
220220
{
221221
capacity_provider = "FARGATE_SPOT"
222-
weight = 4
223-
base = 0
222+
weight = 4
223+
base = 0
224224
},
225225
{
226226
capacity_provider = "FARGATE"
227-
weight = 1
228-
base = 1
227+
weight = 1
228+
base = 1
229229
}
230230
]
231-
231+
232232
network_configuration = {
233233
subnets = local.private_subnets
234234
assign_public_ip = true
@@ -247,9 +247,9 @@ module "ecs_service_fargate_spot" {
247247
tasks_minimum_healthy_percent = 50
248248
tasks_maximum_percent = 200
249249
propagate_tags = "SERVICE"
250-
tags = merge(local.tags, {
250+
tags = merge(local.tags, {
251251
CostOptimization = "fargate-spot"
252-
Service = "fargate-spot-demo"
252+
Service = "fargate-spot-demo"
253253
})
254254

255255
# Service security group rules for direct access (no load balancer)

examples/complete/versions.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@ terraform {
66
source = "hashicorp/aws"
77
version = ">= 5.0.0"
88
}
9+
10+
random = {
11+
source = "hashicorp/random"
12+
version = ">= 3.0.0"
13+
}
914
}
1015
}

examples/external-lb/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
| Name | Version |
2828
|------|---------|
29-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.51.1 |
30-
| <a name="provider_tls"></a> [tls](#provider\_tls) | 4.0.5 |
29+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 6.2.0 |
30+
| <a name="provider_tls"></a> [tls](#provider\_tls) | 4.1.0 |
3131

3232
## Modules
3333

@@ -76,7 +76,6 @@
7676
| <a name="input_network_mode"></a> [network\_mode](#input\_network\_mode) | Docker networking mode to use for the containers in the task. Valid values are none, bridge, awsvpc, and host. | `string` | `"awsvpc"` | no |
7777
| <a name="input_requires_compatibilities"></a> [requires\_compatibilities](#input\_requires\_compatibilities) | Set of launch types required by the task. The valid values are EC2 and FARGATE. | `list(string)` | <pre>[<br> "FARGATE"<br>]</pre> | no |
7878
| <a name="input_retention_in_days"></a> [retention\_in\_days](#input\_retention\_in\_days) | Number of days you want to retain log events in the specified log group. | `number` | `1` | no |
79-
| <a name="input_service_ingress_rules"></a> [service\_ingress\_rules](#input\_service\_ingress\_rules) | Ingress rules to add to the service security group. | `list(any)` | <pre>[<br> {<br> "cidr_blocks": [<br> "0.0.0.0/0"<br> ],<br> "description": "Allow traffic on port 5000. The app is configured to use this port",<br> "from_port": 5000,<br> "protocol": "tcp",<br> "to_port": 5000<br> }<br>]</pre> | no |
8079
| <a name="input_supporting_resources_name"></a> [supporting\_resources\_name](#input\_supporting\_resources\_name) | Name of the supporting resources stack | `string` | `"terraform-aws-ecs-service"` | no |
8180
| <a name="input_tags"></a> [tags](#input\_tags) | Tags to apply to the resources | `map(string)` | <pre>{<br> "Department": "DevOps",<br> "Environment": "example",<br> "InstanceScheduler": true,<br> "LayerId": "cExample",<br> "LayerName": "cExample",<br> "Owner": "Boldlink",<br> "Project": "Examples",<br> "user::CostCenter": "terraform"<br>}</pre> | no |
8281
| <a name="input_target_type"></a> [target\_type](#input\_target\_type) | Type of target that you must specify when registering targets with this target group. See doc for supported values. The default is instance. | `string` | `"ip"` | no |

examples/fargate/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
| Name | Version |
2727
|------|---------|
28-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.51.1 |
28+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 6.2.0 |
2929

3030
## Modules
3131

examples/minimum/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
| Name | Version |
2727
|------|---------|
28-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.51.1 |
28+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 6.2.0 |
2929

3030
## Modules
3131

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ resource "aws_ecs_service" "service" {
2121
for_each = var.capacity_provider_strategy
2222
content {
2323
capacity_provider = capacity_provider_strategy.value.capacity_provider
24-
weight = capacity_provider_strategy.value.weight
25-
base = capacity_provider_strategy.value.base
24+
weight = capacity_provider_strategy.value.weight
25+
base = capacity_provider_strategy.value.base
2626
}
2727
}
2828

0 commit comments

Comments
 (0)