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.86k stars 9.21k forks source link

[Enhancement]: support for codestar source connection for resource aws_servicecatalog_product #33211

Open neelaruban opened 1 year ago

neelaruban commented 1 year ago

Description

aws resource aws_servicecatalog_product currently only support provisioning_artifact_parameters argument under its resource specification . Recently AWS https://docs.aws.amazon.com/servicecatalog/latest/dg/API_CreateProduct.html updated its spec for Create product API with the support for the new field https://docs.aws.amazon.com/servicecatalog/latest/dg/API_CreateProduct.html#servicecatalog-CreateProduct-request-SourceConnection

Could we get some support for this enhancement so its looked into as a priority .

Affected Resource(s) and/or Data Source(s)

Resource: aws_servicecatalog_product Data Source: aws_servicecatalog_product

Potential Terraform Configuration

resource "aws_servicecatalog_product" "example" {
  name  = "example"
  owner = "example-owner"
  type  = "CLOUD_FORMATION_TEMPLATE"

  provisioning_artifact_parameters {
    template_url = "https://s3.amazonaws.com/cf-templates-ozkq9d3hgiq2-us-east-1/temp1.json"
  }

   Source_connection  { 
      connection_parameters { 
         code_star =  { 
            artifact_path = string
            branch = string
            connection_arn = string
            repository =  string
         }
      },
      type = string
   }
  tags = {
    foo = "bar"
  }
}

References

https://docs.aws.amazon.com/servicecatalog/latest/dg/API_CreateProduct.html#servicecatalog-CreateProduct-request-SourceConnection

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue