Skip to content

Terraform configuration to create and populate the cyber.dhs.gov zone.

License

Notifications You must be signed in to change notification settings

ajoline/cool-dns-cyber.dhs.gov

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cool-dns-cyber.dhs.gov

GitHub Build Status

This repository contains a Terraform configuration that will provision the DNS zone cyber.dhs.gov within the COOL. It creates an IAM role that allows sufficient permissions to modify resources records in this zone. This role has a trust relationship with the users account.

Usage

  1. Run the command terraform init.
  2. Run the command terraform apply.

Requirements

Name Version
terraform ~> 1.0
aws ~> 3.38

Providers

Name Version
aws ~> 3.38
aws.acmresourcechange ~> 3.38
aws.dnsprovisionaccount ~> 3.38
aws.organizationsreadonly ~> 3.38
aws.route53resourcechange ~> 3.38
terraform n/a

Modules

Name Source Version
read_terraform_state github.com/cisagov/terraform-state-read-role-tf-module n/a

Resources

Name Type
aws_acm_certificate.rules resource
aws_acm_certificate_validation.rules resource
aws_iam_policy.acmresourcechange_policy resource
aws_iam_policy.route53resourcechange_policy resource
aws_iam_policy.sesmanagesuppressionlist_policy resource
aws_iam_policy.sessendemail_policy resource
aws_iam_role.acmresourcechange_role resource
aws_iam_role.route53resourcechange_role resource
aws_iam_role.sesmanagesuppressionlist_role resource
aws_iam_role.sessendemail_role resource
aws_iam_role_policy_attachment.acmresourcechange_policy_attachment resource
aws_iam_role_policy_attachment.route53resourcechange_policy_attachment resource
aws_iam_role_policy_attachment.sesmanagesuppressionlist_policy_attachment resource
aws_iam_role_policy_attachment.sessendemail_policy_attachment resource
aws_route53_record._amazonses_TXT resource
aws_route53_record._amazonses_dmarc_TXT resource
aws_route53_record._dmarc_TXT resource
aws_route53_record.ceil_NS resource
aws_route53_record.crossfeed_cool_prod_dkim1_CNAME resource
aws_route53_record.crossfeed_cool_prod_dkim2_CNAME resource
aws_route53_record.crossfeed_cool_prod_dkim3_CNAME resource
aws_route53_record.crossfeed_cool_staging_dkim1_CNAME resource
aws_route53_record.crossfeed_cool_staging_dkim2_CNAME resource
aws_route53_record.crossfeed_cool_staging_dkim3_CNAME resource
aws_route53_record.crossfeed_prod_A resource
aws_route53_record.crossfeed_prod_AAAA resource
aws_route53_record.crossfeed_prod_MX resource
aws_route53_record.crossfeed_prod_TXT resource
aws_route53_record.crossfeed_prod_acm_CNAME resource
aws_route53_record.crossfeed_prod_api_A resource
aws_route53_record.crossfeed_prod_api_AAAA resource
aws_route53_record.crossfeed_prod_api_acm_CNAME resource
aws_route53_record.crossfeed_prod_dkim1_CNAME resource
aws_route53_record.crossfeed_prod_dkim2_CNAME resource
aws_route53_record.crossfeed_prod_dkim3_CNAME resource
aws_route53_record.crossfeed_prod_docs_CNAME resource
aws_route53_record.crossfeed_prod_ses_TXT resource
aws_route53_record.crossfeed_staging_A resource
aws_route53_record.crossfeed_staging_AAAA resource
aws_route53_record.crossfeed_staging_CNAME resource
aws_route53_record.crossfeed_staging_MX resource
aws_route53_record.crossfeed_staging_TXT resource
aws_route53_record.crossfeed_staging_api_A resource
aws_route53_record.crossfeed_staging_api_AAAA resource
aws_route53_record.crossfeed_staging_api_CNAME resource
aws_route53_record.crossfeed_staging_api_acme_TXT resource
aws_route53_record.crossfeed_staging_cd_A resource
aws_route53_record.crossfeed_staging_cd_AAAA resource
aws_route53_record.crossfeed_staging_cd_CNAME resource
aws_route53_record.crossfeed_staging_cd_api_A resource
aws_route53_record.crossfeed_staging_cd_api_AAAA resource
aws_route53_record.crossfeed_staging_cd_api_CNAME resource
aws_route53_record.crossfeed_staging_dkim1_CNAME resource
aws_route53_record.crossfeed_staging_dkim2_CNAME resource
aws_route53_record.crossfeed_staging_dkim3_CNAME resource
aws_route53_record.crossfeed_staging_ses_TXT resource
aws_route53_record.dkim_CNAME resource
aws_route53_record.dkim_dmarc_CNAME resource
aws_route53_record.dmarc_MX resource
aws_route53_record.drop_ncats_A resource
aws_route53_record.fw01_ncats_A resource
aws_route53_record.fw02_ncats_A resource
aws_route53_record.mail_MX resource
aws_route53_record.mail_SPF resource
aws_route53_record.pca_production_NS resource
aws_route53_record.pca_staging_NS resource
aws_route53_record.root_A resource
aws_route53_record.root_AAAA resource
aws_route53_record.root_CAA resource
aws_route53_record.root_MX resource
aws_route53_record.root_SPF resource
aws_route53_record.root_acm_rules_CNAME resource
aws_route53_record.rules_certificate_validation resource
aws_route53_record.rules_ncats_A resource
aws_route53_record.rules_ncats_AAAA resource
aws_route53_record.vip_ncats_A resource
aws_route53_record.vpn_ncats_CNAME resource
aws_route53_record.wildcard_report_dmarc_TXT resource
aws_route53_zone.cyber_dhs_gov resource
aws_ses_domain_dkim.cyber_dhs_gov_dkim resource
aws_ses_domain_dkim.dmarc_dkim resource
aws_ses_domain_identity.cyhy_dhs_gov_identity resource
aws_ses_domain_identity.dmarc_identity resource
aws_ses_domain_mail_from.cyber_dhs_gov resource
aws_ses_identity_notification_topic.cyber_dhs_gov_bounce resource
aws_ses_identity_notification_topic.cyber_dhs_gov_complaint resource
aws_ses_identity_notification_topic.cyber_dhs_gov_delivery resource
aws_sns_topic.cyber_dhs_gov_bounce resource
aws_sns_topic.cyber_dhs_gov_complaint resource
aws_sns_topic.cyber_dhs_gov_delivery resource
aws_sns_topic_subscription.cyber_dhs_gov_bounce resource
aws_sqs_queue.cyber_dhs_gov_delivery resource
aws_caller_identity.current data source
aws_iam_policy_document.acmresourcechange_doc data source
aws_iam_policy_document.assume_role_doc data source
aws_iam_policy_document.route53resourcechange_doc data source
aws_iam_policy_document.sesmanagesuppressionlist_assume_role_doc data source
aws_iam_policy_document.sesmanagesuppressionlist_doc data source
aws_iam_policy_document.sessendemail_assume_role_doc data source
aws_iam_policy_document.sessendemail_doc data source
aws_organizations_organization.cool data source
terraform_remote_state.dns data source
terraform_remote_state.master data source
terraform_remote_state.pca_production data source
terraform_remote_state.pca_staging data source
terraform_remote_state.terraform data source

Inputs

Name Description Type Default Required
acmresourcechange_role_description The description to associate with the IAM role (as well as the corresponding policy) that allows sufficient permissions to modify ACM (AWS Certificate Manager) resources in the DNS account. string "Allows sufficient permissions to modify ACM resources in the DNS account." no
acmresourcechange_role_name The name to assign the IAM role (as well as the corresponding policy) that allows sufficient permissions to modify ACM (AWS Certificate Manager) resources in the DNS account. string "ACMResourceChange" no
additional_remote_state_account_ids A list of account IDs corresponding to additional accounts that should have permission to assume the role to read this root module's remote state (e.g. ["123456789012"]). list(string) [] no
additional_ses_sendemail_account_ids A list of account IDs corresponding to additional accounts that should have permission to assume the role to send email via AWS SES (e.g. ["123456789012"]). list(string) [] no
aws_region The AWS region to communicate with. string "us-east-1" no
cloudfront_zone_id The ID of the Cloudfront hosted zone. This is set by AWS and is a constant across all Cloudfront distributions. string "Z2FDTNDATAQYW2" no
cyhy_account_id The ID of the CyHy account. string n/a yes
read_terraform_state_role_name The name to assign the IAM role and policy that allows read-only access to the cool-dns-cyber.dhs.gov state in the S3 bucket where Terraform state is stored. string "ReadCyberDhsGovTerraformState" no
route53resourcechange_role_description The description to associate with the IAM role (as well as the corresponding policy) that allows sufficient permissions to modify resource records in the DNS zone. string "Allows sufficient permissions to modify resource records in the DNS zone." no
route53resourcechange_role_name The name to assign the IAM role (as well as the corresponding policy) that allows sufficient permissions to modify resource records in the DNS zone. string "Route53ResourceChange-cyber.dhs.gov" no
sesmanagesuppressionlist_role_description The description to associate with the IAM role (as well as the corresponding policy) that allows sufficient permissions to manage the suppression list. string "Allows sufficient permissions to manage the suppression list." no
sesmanagesuppressionlist_role_name The name to assign the IAM role (as well as the corresponding policy) that allows sufficient permissions to manage the suppression list. string "SesManageSuppressionList-cyber.dhs.gov" no
sessendemail_role_description The description to associate with the IAM role (as well as the corresponding policy) that allows sufficient permissions to send email via AWS SES. string "Allows sufficient permissions to send email via AWS SES." no
sessendemail_role_name The name to assign the IAM role (as well as the corresponding policy) that allows sufficient permissions to send email via AWS SES. string "SesSendEmail-cyber.dhs.gov" no
tags Tags to apply to all AWS resources created. map(string) {} no

Outputs

Name Description
acmresourcechange_role IAM role that allows sufficient permissions to modify ACM (AWS Certificate Manager) resources in the DNS account.
cyber_dhs_gov_zone The cyber.dhs.gov public hosted zone.
route53resourcechange_role IAM role that allows sufficient permissions to modify resource records in the cyber.dhs.gov zone.
sesmanagesuppressionlist_role IAM role that allows sufficient permissions to manage the AWS SES suppression list.
sessendemail_role IAM role that allows sufficient permissions to send email via AWS SES.

Notes

Running pre-commit requires running terraform init in every directory that contains Terraform code. In this repository, this is just the main directory.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

This project is in the worldwide public domain.

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

About

Terraform configuration to create and populate the cyber.dhs.gov zone.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 91.7%
  • Shell 8.3%