Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Service Catalog resources #15369

Closed
ahgittin opened this issue Sep 26, 2020 · 4 comments
Closed

Add Service Catalog resources #15369

ahgittin opened this issue Sep 26, 2020 · 4 comments
Assignees
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/servicecatalog Issues and PRs that pertain to the servicecatalog service.

Comments

@ahgittin
Copy link

ahgittin commented Sep 26, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

AWS Service Catalog is an important service especially for large companies who want to make certain deployment patterns available to end-users. Recently support has been developed that allows SC to deploy Terraform-based deployments (https://aws.amazon.com/blogs/apn/using-terraform-to-manage-aws-programmable-infrastructures/), and it would be helpful to complete the capabilities for those who use Terraform and Service Catalog to be able to create their SC estate using Terraform.

Support in this provider for the AWS SC resources would permit that.

New or Affected Resource(s)

  • aws_servicecatalog_portfolio_principal_association
  • aws_servicecatalog_portfolio_product_association
  • aws_servicecatalog_product
  • aws_servicecatalog_provisioned_product

Potential Terraform Configuration

Example for a product (assuming buckets etc exist):

resource "aws_servicecatalog_product" "demo" {
  name                = "product-tfprov-demo-123"
  product_type        = "CLOUD_FORMATION_TEMPLATE"

  owner               = "Cloudsoft"
  support_email       = "info@cloudsoft.io"
  support_url         = "http://cloudsoft.io"

  provisioning_artifact {
    description = "v1"
    name        = "pa-tfprov-demo-123"
    info = {
      LoadTemplateFromURL = "https://s3.amazonaws.com/${aws_s3_bucket.bucket.id}/${aws_s3_bucket_object.tfprov-demo-template.key}"
    }
  }
}

References

Early work (from 2 years ago) was done in PR #4980, but both TF and AWS have evolved since then, and more is needed on top of that work. We have integrated that work in new PRs which are now available as follows:

These are designed so they can be reviewed and merged in the sequence, with the latter ones using the functionality of the former in their tests to be able to test the complete functionality (creating portfolios and products, then provisioning a product). Many review comments have been addressed, with the full battery of standard tests implemented, and we expect it will be a small job to review and merge despite the comparative large size of some.

This issue can be used to track progress on the set of PRs above.

@ahgittin ahgittin added the enhancement Requests to existing resources that expand the functionality or scope. label Sep 26, 2020
@ghost ghost added the service/servicecatalog Issues and PRs that pertain to the servicecatalog service. label Sep 26, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Sep 26, 2020
@ahgittin
Copy link
Author

ahgittin commented Sep 26, 2020

All PRs above have been updated as per the 18 Aug notifications to use the v2 sdk and remove aws.erb (fixing the conflicts), and also updating to conform to the stricter markdown checks.

All PRs passing all checks.

All tests confirmed passing - make testacc TESTARGS='-run=TestAccAWSServiceCatalog' with all the above merged.

@jcmcken
Copy link

jcmcken commented May 21, 2021

Are any of these in scope for this issue?

@breathingdust
Copy link
Member

Closing as initial support for Service Catalog has been completed!

@github-actions
Copy link

github-actions bot commented Sep 3, 2021

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/servicecatalog Issues and PRs that pertain to the servicecatalog service.
Projects
None yet
Development

No branches or pull requests

5 participants