Skip to content

Commit

Permalink
fix(terraform): add new attached resource possibility to CKV2_AWS_23 #…
Browse files Browse the repository at this point in the history
…5424 (#5429)

add new attached resource possibility
  • Loading branch information
JamesWoolfenden committed Aug 13, 2023
1 parent 65dbeb1 commit f4b0a3d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ definition:
- aws_db_instance
- aws_apigatewayv2_domain_name
- aws_lightsail_instance
- aws_lightsail_static_ip
operator: exists
attribute: networking
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pass:
- "aws_route53_record.pass_apiv2"
- "aws_route53_record.pass_alb"
- "aws_route53_record.pass_lightsail"
- "aws_route53_record.pass_lightsail2"
fail:
- "aws_route53_record.fail"
ignore:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,15 @@ resource "aws_lightsail_instance" "example" {
blueprint_id = "ubuntu_20_04"
bundle_id = "medium_2_0"
}

resource "aws_route53_record" "pass_lightsail2" {
zone_id = aws_route53_zone.primary.zone_id
name = "mydomian.com"
type = "A"
ttl = "30"
records = [aws_lightsail_static_ip.example.ip_address]
}

resource "aws_lightsail_static_ip" "example" {
name = "pike"
}

0 comments on commit f4b0a3d

Please sign in to comment.