hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.81k stars 9.15k forks source link

Amazon CloudWatch Synthetics support for environment variables #19733

Closed anilkumarkodali closed 3 years ago

anilkumarkodali commented 3 years ago

Community Note

Description

CloudWatch Synthetics now supports the use of environment variables with canaries. This allows you to save time by using a single canary script to create different canaries that have a similar task.

This provider is not updated to support that feature yet and hence creating this request to start supporting it.

New or Affected Resource(s)

Potential Terraform Configuration

Elem: &schema.Resource{
    Schema: map[string]*schema.Schema{
        "active_tracing": {
            Type:     schema.TypeBool,
            Optional: true,
        },
        "memory_in_mb": {
            Type:     schema.TypeInt,
            Optional: true,
            Computed: true,
            ValidateFunc: validation.All(
                validation.IntDivisibleBy(64),
                validation.IntAtLeast(960),
            ),
        },
        "timeout_in_seconds": {
            Type:         schema.TypeInt,
            Optional:     true,
            ValidateFunc: validation.IntBetween(3, 14*60),
            Default:      840,
        },
        "environment_variables": {
            Type:     schema.TypeMap,
            Computed: true,
            Elem:     &schema.Schema{Type: schema.TypeString},
        },
    },
},

References

ewbankkit commented 3 years ago

@anilkumarkodali Thanks for raising this issue. It has already been noticed in #17948. I'm going to close this one as a duplicate so that we can concentrate discussion in the linked issue. Please add any additional comments there.

github-actions[bot] commented 3 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.