Hardened (FIPS) Host for NGINX, Docker, Kubernets, etc
Hardened (FIPS) Host for NGINX, Docker, Kubernetes, etc
variable adminUserName { default = "xadmin" }
variable adminPassword { default = "2018F5Networks!!" }
variable adminPubKey { default = "~/.ssh/id_rsa.pub" }
variable location { default = "usgovvirginia" }
variable region { default = "USGov Virginia" }
variable prefix { default = "mjc" }
...
variable region_domain { default = "usgovvirginia.cloudapp.usgovcloudapi.net" }
# https://www.open-scap.org/security-policies/choosing-policy/
variable oscap_profile { default = "https://security-metadata.canonical.com/oval/com.ubuntu.$(lsb_release -cs).usn.oval.xml.bz2" }
variable lsb_release { default = "bionic" }
...
variable tags {
default = {
"purpose" = "public"
"environment" = "env" #ex. dev/staging/prod
"owner" = "email@domain" # will be passed to certbot
"group" = "group"
"costcenter" = "costcenter"
"application" = "app"
}
}
terraform init
teraform plan
terraform apply
Outputs:
output secure_oscap_results { value = "https://${azurerm_public_ip.publicip.fqdn}" }
output secure_inspec_results { value = "https://${azurerm_public_ip.publicip.fqdn}/inspec.json" }