Skip to content
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

CKV2_AWS_23 failing on lightsail static ip #5424

Closed
ghost opened this issue Aug 9, 2023 · 0 comments · Fixed by #5429
Closed

CKV2_AWS_23 failing on lightsail static ip #5424

ghost opened this issue Aug 9, 2023 · 0 comments · Fixed by #5429
Labels
checks Check additions or changes

Comments

@ghost
Copy link

ghost commented Aug 9, 2023

Describe the issue
aws_route53_record created with a record pointing to aws_lightsail_static_ip.resourcename.ip_adddress
Checkov check fails with CKV2_AWS_23: "Route53 A Record has Attached Resource"

In AWS console, when creating an A record and selecting an alias, there is no option to select lightsail resources (only NLB/ALB, Cloudfront etc) so only option is to statically set IP address of lightsail instance (as per code example below).

Examples
For this purpose, assume a lightsail resource with name of example has already been created.

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

Version (please complete the following information):

  • [Checkov Version [e.g. 22]](version: 2.3.333)

Additional context
Add any other context about the problem here.

@ghost ghost added the checks Check additions or changes label Aug 9, 2023
gruebel pushed a commit that referenced this issue Aug 13, 2023
gruebel pushed a commit to gruebel/checkov that referenced this issue Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
checks Check additions or changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants