This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { AccountOrder, EnvironmentType } from "../types"; | |
| import { ServiceCatalog } from "aws-sdk"; | |
| # Get this ID from the AWS console (Service Catalog Product) | |
| # https://eu-central-1.console.aws.amazon.com/servicecatalog/home?region=eu-central-1#products | |
| const { AWS_CONTROL_TOWER_SC_PRODUCT_ID } = process.env; | |
| if (!AWS_CONTROL_TOWER_SC_PRODUCT_ID) { | |
| throw new Error("AWS_CONTROL_TOWER_SC_PRODUCT_ID must be set"); | |
| } |