cisagov / cool-dns-cyber.dhs.gov

Terraform configuration to create and populate the cyber.dhs.gov zone.
Creative Commons Zero v1.0 Universal
3 stars 9 forks source link

Add permission to allow searching for cyber.dhs.gov hosted zone ID #8

Closed jsf9k closed 4 years ago

jsf9k commented 4 years ago

๐Ÿ—ฃ Description

In this pull request I add two permissions to the Route53ResourceChange-cyber.dhs.gov role that allows users to search for the cyber.dhs.gov hosted zone.

๐Ÿ’ญ Motivation and Context

These extra permissions are required, for example, in cisagov/openvpn-server-tf-module.

๐Ÿงช Testing

I deployed these changes to COOL production and used them to deploy cisagov/openvpn-server-tf-module to COOL staging.

๐Ÿšฅ Types of Changes

โœ… Checklist

felddy commented 4 years ago

Does it make sense to be setting a var for the domain, then searching for it, when you could just pull in the zone (cyber_dhs_gov_zone) from the output of this module: https://github.com/cisagov/cool-dns-cyber.dhs.gov/blob/4ea955350ba257486ac6ba19d426f80b9a6c9ee9/outputs.tf#L1-L4

This was my intended use pattern for DNS in the COOL.

jsf9k commented 4 years ago

I will rework to use remote state.

On Thu, Mar 26, 2020 at 9:01 AM Mark Feldhousen notifications@github.com wrote:

Does it make sense to be setting a var for the domain, then searching for it, when you could just pull in the zone (cyber_dhs_gov_zone) from the output of this module:

https://github.com/cisagov/cool-dns-cyber.dhs.gov/blob/4ea955350ba257486ac6ba19d426f80b9a6c9ee9/outputs.tf#L1-L4

This was my intended use pattern for DNS in the COOL.

โ€” You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/cisagov/cool-dns-cyber.dhs.gov/pull/8#issuecomment-604417716, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKECPMAQG7VW4HSRP4SWUDRJNG3JANCNFSM4LT45TPA .

jsf9k commented 4 years ago

In deference to @felddy's comment, I resolved this a different way. See cisagov/cool-sharedservices-openvpn#10 and cisagov/openvpn-server-tf-module#19.