Last active
November 6, 2022 20:32
-
-
Save sscovil/95b2119ed0f06579b81c016951d69ade to your computer and use it in GitHub Desktop.
Terraform CDK using AWS Provider (Python)
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
| from cdktf import App, TerraformStack, TerraformOutput | |
| from cdktf_cdktf_provider_aws.provider import AwsProvider | |
| from constructs import Construct | |
| class ExampleStack(TerraformStack): | |
| def __init__(self, scope: Construct, ns: str): | |
| super().__init__(scope, ns) | |
| AwsProvider(self, "aws", region="us-east-1") | |
| # TODO: Add your constructs here | |
| app = App() | |
| ExampleStack(app, "my-example-stack") | |
| app.synth() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment