ELBv2: ModifyLoadBalancerAttributes has a new valid attribute (#7278)

This commit is contained in:
Bert Blommers 2024-01-30 08:46:59 +00:00 committed by GitHub
parent 7131d89015
commit 74c328279e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 44 additions and 1 deletions

View File

@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
service: ["acm", "cloudfront", "route53"]
service: ["acm", "cloudfront", "elb", "route53"]
steps:
- uses: actions/checkout@v4

View File

@ -581,6 +581,7 @@ class FakeLoadBalancer(CloudFormationModel):
"connection_logs.s3.enabled",
"connection_logs.s3.prefix",
"deletion_protection.enabled",
"dns_record.client_routing_policy",
"idle_timeout.timeout_seconds",
"ipv6.deny_all_igw_traffic",
"load_balancing.cross_zone.enabled",

View File

@ -0,0 +1,18 @@
data "aws_vpc" "default" {
default = true
}
data "aws_subnets" "all" {
filter {
name = "vpc-id"
values = [data.aws_vpc.default.id]
}
}
resource "aws_lb" "this" {
name = "nlb-test"
internal = true
load_balancer_type = "network"
subnets = data.aws_subnets.all.ids
enable_deletion_protection = false
}

View File

@ -0,0 +1,24 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
# version = "5.22.0" # 5.22.0 is the last version that works
}
}
}
provider "aws" {
region = "us-east-1"
s3_use_path_style = true
skip_credentials_validation = true
skip_metadata_api_check = true
skip_requesting_account_id = true
endpoints {
ec2 = "http://localhost:5000"
elbv2 = "http://localhost:5000"
}
access_key = "my-access-key"
secret_key = "my-secret-key"
}