github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/cloudstack/compute/AVD-CLDSTK-0001/Terraform.md (about)

     1  
     2  Don't use sensitive data in the user data section
     3  
     4  ```hcl
     5   resource "cloudstack_instance" "web" {
     6     name             = "server-1"
     7     service_offering = "small"
     8     network_id       = "6eb22f91-7454-4107-89f4-36afcdf33021"
     9     template         = "CentOS 6.5"
    10     zone             = "zone-1"
    11     user_data        = <<EOF
    12   export GREETING="Hello there"
    13   EOF
    14   }
    15   
    16  ```
    17  ```hcl
    18   resource "cloudstack_instance" "web" {
    19     name             = "server-1"
    20     service_offering = "small"
    21     network_id       = "6eb22f91-7454-4107-89f4-36afcdf33021"
    22     template         = "CentOS 6.5"
    23     zone             = "zone-1"
    24     user_data        = "ZXhwb3J0IEVESVRPUj12aW1hY3M="
    25   }
    26   
    27  ```
    28  
    29  #### Remediation Links
    30   - https://registry.terraform.io/providers/hashicorp/cloudstack/latest/docs/resources/instance#
    31