cloudposse / cloudposse/terraform-aws-code-deploy

Multiple ec2_tag_sets?

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
17
Forks
23
PR merge metrics
No merged PRs in 30d

Description

### Describe the Feature

Is there a way to create multiple ec2_tag_sets, replicating the below?

```
ec2_tag_set {
ec2_tag_filter {
key = "env"
type = "KEY_AND_VALUE"
value = "dev"
}

ec2_tag_filter {
key = "product"
type = "KEY_AND_VALUE"
value = "myProduct"
}
}

ec2_tag_set {
ec2_tag_filter {
key = "id"
type = "KEY_AND_VALUE"
value = "0000"
}
}

```

My variable declaration:
```
ec2_tag_set = [{
ec2_tag_filter = [{
key = "product"
value = "myProduct"
type = "KEY_AND_VALUE"

},
{
key="id"
value="0000"
type = "KEY_AND_VALUE"
}
],
ec2_tag_filter = [
{
key = "environment"
value = "dev"
type = "KEY_AND_VALUE"

}
],

}]
```

### Expected Behavior

Multiple tag groups are created.

### Use Case

to be able to have multiple tag groups similar to how it can be set in the console.

### Describe Ideal Solution

not sure.

### Alternatives Considered

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.