Home

Awesome

<!-- BEGIN_TF_DOCS -->

Domain (Cloudflare)

Cloudflare Setup for a new SaaS Startup

Includes:

Usage

locals {
  subdomains = [
    {
      name    = "@"
      value   = "longtld.elb.us-west-2.amazonaws.com"
      type    = "CNAME"
      proxied = true
    },
    {
      name    = "app"
      value   = "longtlkd.elb.us-west-2.amazonaws.com"
      type    = "CNAME"
      proxied = true
    }
  ]
}

module "parking" {
  source = "github.com/opszero/terraform-cloudflare-domain"
  domain = "example.com"
  records = local.subdomains
}

Deployment

terraform init
terraform plan
terraform apply -auto-approve

Teardown

terraform destroy -auto-approve

Providers

NameVersion
<a name="provider_aws"></a> awsn/a
<a name="provider_cloudflare"></a> cloudflaren/a

Inputs

NameDescriptionTypeDefaultRequired
<a name="input_access"></a> accessList of access applicationslist[]no
<a name="input_account_id"></a> account_idCloudflare account idanyn/ayes
<a name="input_aws_ses_enabled"></a> aws_ses_enabledCreate AWS SES resourcesboolfalseno
<a name="input_domain"></a> domaindomain for the webappanyn/ayes
<a name="input_google_email_enabled"></a> google_email_enabledEnable Google MX Recordsbooltrueno
<a name="input_records"></a> recordsList of DNS recordslist[]no
<a name="input_ssl_forced"></a> ssl_forcedForce SSL on Domainsbooltrueno

Resources

NameType
aws_ses_domain_dkim.dkimresource
aws_ses_domain_identity.sesresource
cloudflare_access_application.accessresource
cloudflare_access_policy.support_policyresource
cloudflare_page_rule.sslresource
cloudflare_record.dkimresource
cloudflare_record.mxresource
cloudflare_record.recordsresource
cloudflare_record.sesresource
cloudflare_record.spfresource
cloudflare_zone.siteresource

Outputs

No outputs.

🚀 Built by opsZero!

<a href="https://opszero.com"><img src="https://opszero.com/wp-content/uploads/2024/07/opsZero_logo_svg.svg" width="300px"/></a>

Since 2016 opsZero has been providing Kubernetes expertise to companies of all sizes on any Cloud. With a focus on AI and Compliance we can say we seen it all whether SOC2, HIPAA, PCI-DSS, ITAR, FedRAMP, CMMC we have you and your customers covered.

We provide support to organizations in the following ways:

We do this with a high-touch support model where you:

Please schedule a call if you need support.

<br/><br/>

<div style="display: block"> <img src="https://opszero.com/wp-content/uploads/2024/07/aws-advanced.png" width="150px" /> <img src="https://opszero.com/wp-content/uploads/2024/07/AWS-public-sector.png" width="150px" /> <img src="https://opszero.com/wp-content/uploads/2024/07/AWS-eks.png" width="150px" /> </div> <!-- END_TF_DOCS -->