-
Couldn't load subscription status.
- Fork 4
Update vpc resource names inline with issue #89. #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Are we going to add the moved block in so that it does not break existing uses? |
I believe this is going to be in another PR. This PR just changes the resource name. |
|
The agreed approach was to bump up a major version to not have to deal with the moved block, as far as I'm aware. |
Initial changes... more name changes to come.
Added aws_region_short
Added `data "aws_region" "current" {}`
f8e3ae9 to
025dc07
Compare
|
This is my PR so I can't approve it, but I have checked and this looks good to me 👍 |
| aws = { | ||
| source = "hashicorp/aws" | ||
| version = ">= 4.0" | ||
| version = ">= 5.14.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we document (in code, or in wiki) the reasoning/requirement behind minimum versions of providers? It will make it easier to understand cross-module provider requirements
| description = "The email address of the owner." | ||
|
|
||
| validation { | ||
| condition = can(match("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$", var.owner)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| condition = can(match("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$", var.owner)) | |
| condition = can(regex("^.+@[^@]+\\.[^@]{2,}$", var.owner)) |
more permissive email validation (plus match doesn't exist)
| resource "aws_cloudwatch_log_group" "vpc_flow_logs" { | ||
| count = var.enable_vpc_flow_logs ? 1 : 0 | ||
|
|
||
| name = "${replace("AWS::Logs::LogGroup", "::", "-")}-${var.project_name}-${var.environment}-${local.aws_region_short}-vpc_flow_logs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason to use replace like this throughout? Also should be lower case. Surely we should just use something like log_group-...
No description provided.