我正在尝试通过 Terraform 部署服务目录。当我尝试通过代码部署服务目录产品时:
\n#Service catalog product\nresource "aws_servicecatalog_product" "linuxDesktop" {\n name = "Linux Desktop"\n description= "Cloud development environment configured for engineering staff. Runs AWS Linux."\n owner = "IT"\n type = "CLOUD_FORMATION_TEMPLATE"\n\n provisioning_artifact_parameters {\n template_url = "https://fdfdasfadfdf.s3.us-west-2.amazonaws.com/development-environment.yaml"\n }\n}\n\nRun Code Online (Sandbox Code Playgroud)\n我从 terraform 收到错误:
\naws_servicecatalog_portfolio.portfolio: Creation complete after 2s [id=port-xe2ql6s2myy3s]\n\xe2\x95\xb7\n\xe2\x94\x82 Error: error creating Service Catalog Product: InvalidParametersException: The CLOUD_FORMATION_TEMPLATE Product Type only supports the following ProvisioningArtifact Types: CLOUD_FORMATION_TEMPLATE, ACCOUNT_FACTORY\n\xe2\x94\x82\n\xe2\x94\x82 with aws_servicecatalog_product.linuxDesktop,\n\xe2\x94\x82 on main.tf line 31, in resource "aws_servicecatalog_product" "linuxDesktop":\n\xe2\x94\x82 31: resource "aws_servicecatalog_product" …Run Code Online (Sandbox Code Playgroud)