Skip to content

feat: Change to allow create variable within specific vpc objects#773

Merged
antonbabenko merged 6 commits intoterraform-aws-modules:masterfrom
matipadeveloper:master
Mar 31, 2022
Merged

feat: Change to allow create variable within specific vpc objects#773
antonbabenko merged 6 commits intoterraform-aws-modules:masterfrom
matipadeveloper:master

Conversation

@matipadeveloper
Copy link
Copy Markdown
Contributor

Description

This change is to allow for create to work within each vpc endpoint object. If the create is outside of a vpc endpoint then that will take priorty over the specific vpc endpoints create.

Motivation and Context

This will make the script alot more flexible and fine grain. As you can go down to object level to specify which objects should be created or not. Making a lot more use cases possible.

Breaking Changes

The only thing that was introduced that would be debtable is try but it seems try has been there for a long time so seem like it is backwards compatible.

How Has This Been Tested?

Yes I have an example project which I tested this on. I tested with multiple use cases to make sure.
This change will also default create to true with object level vpc endpoints just like it has been. Meaning create is still optional for object level and resource level create.

Matipa Modisane added 2 commits March 31, 2022 14:26
…both all vpc endpoints but also specific vpc endpoints, whereas currently we can only disable and enable all or nothing.
@matipadeveloper matipadeveloper changed the title Matipa Modisane: Change to allow create variable within specific vpc objects feat: Change to allow create variable within specific vpc objects Mar 31, 2022
@antonbabenko
Copy link
Copy Markdown
Member

Looks good. Could you please update the code in examples/complete-vpc and include one line with create = false to show this feature?

In this block, for example:

ecs_telemetry = {
service = "ecs-telemetry"
private_dns_enabled = true
subnet_ids = module.vpc.private_subnets
},

@matipadeveloper
Copy link
Copy Markdown
Contributor Author

Looks good. Could you please update the code in examples/complete-vpc and include one line with create = false to show this feature?

In this block, for example:

ecs_telemetry = {
service = "ecs-telemetry"
private_dns_enabled = true
subnet_ids = module.vpc.private_subnets
},

Awesome I have added it in the complete vpc

Comment thread examples/complete-vpc/main.tf Outdated
@antonbabenko antonbabenko merged commit 5913d7e into terraform-aws-modules:master Mar 31, 2022
antonbabenko pushed a commit that referenced this pull request Mar 31, 2022
## [3.14.0](v3.13.0...v3.14.0) (2022-03-31)

### Features

* Change to allow create variable within specific vpc objects ([#773](#773)) ([5913d7e](5913d7e))
@antonbabenko
Copy link
Copy Markdown
Member

This PR is included in version 3.14.0 🎉

@antonbabenko
Copy link
Copy Markdown
Member

Thank you @matipadeveloper for this PR!

@matipadeveloper
Copy link
Copy Markdown
Contributor Author

Anytime @antonbabenko thank you for the module!

@github-actions
Copy link
Copy Markdown

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants