This file contains 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 constructs import Construct | |
from cdktf import App, TerraformStack | |
from cdktf_cdktf_provider_aws.provider import AwsProvider | |
from cdktf_cdktf_provider_aws.s3_bucket import S3Bucket, S3BucketGrant, S3BucketServerSideEncryptionConfiguration, \ | |
S3BucketServerSideEncryptionConfigurationRule, S3BucketVersioning, \ | |
S3BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault | |
class ExampleStack(TerraformStack): | |
def __init__(self, scope: Construct, ns: str): |
This file contains 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 constructs import Construct | |
from cdktf import App, TerraformStack, TerraformOutput | |
from cdktf_cdktf_provider_aws.provider import AwsProvider | |
from cdktf_cdktf_provider_aws.s3_bucket import S3Bucket | |
class MyStack(TerraformStack): | |
def __init__(self, scope: Construct, ns: str): | |
super().__init__(scope, ns) | |
This file contains 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 constructs import Construct | |
from provider import Provider, get_provider | |
class ExampleStack(TerraformStack): | |
def __init__(self, scope: Construct, ns: str, provider: Provider): | |
super().__init__(scope, ns) |
This file contains 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( |
This file contains 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 constructs import Construct | |
from cdktf import App, TerraformStack | |
from cdktf_cdktf_provider_aws.provider import AwsProvider | |
class MyStack(TerraformStack): | |
def __init__(self, scope: Construct, id: str): | |
super().__init__(scope, id) | |
AwsProvider(self, "aws", region="us-east-1") |
This file contains 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 constructs import Construct | |
from cdktf import App, TerraformStack | |
class MyStack(TerraformStack): | |
def __init__(self, scope: Construct, id: str): | |
super().__init__(scope, id) | |
# define resources here |
This file contains 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
# Provider bindings are generated by running cdktf get. | |
# See https://cdk.tf/provider-generation for more details. | |
import ...gen.providers.aws as aws | |
aws.s3_bucket.S3Bucket(self, "tfer--terraformer-to-cdktf", | |
arn="arn:aws:s3:::terraformer-to-cdktf", | |
bucket="terraformer-to-cdktf", | |
force_destroy="false", | |
grant=[{ | |
"id": "8d21f6687505cae71b257ce38713a9e2071c721a304f2b0720ed73103d3709d2", | |
"permissions": ["FULL_CONTROL"], |
This file contains 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
resource "aws_s3_bucket" "tfer--terraformer-to-cdktf" { | |
arn = "arn:aws:s3:::terraformer-to-cdktf" | |
bucket = "terraformer-to-cdktf" | |
force_destroy = "false" | |
grant { | |
id = "8d21f6687505cae71b257ce38713a9e2071c721a304f2b0720ed73103d3709d2" | |
permissions = ["FULL_CONTROL"] | |
type = "CanonicalUser" | |
} |
This file contains 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
#!/usr/bin/env python | |
import json | |
import os | |
import re | |
import urllib3 | |
http = urllib3.PoolManager() | |
jira_webhook_url = os.environ["JIRA_WEBHOOK_URL"] | |
valid_states = ["APPROVED", "CHANGES_REQUESTED"] |
This file contains 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") |