from aws_cdk import (
    aws_s3 as s3,
    core
)


class ArtifactStack(core.Stack):

    def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
        """
        ArtifactStack creates the CloudFormation Stack that creates the Artifact S3 Bucket that stg deployment builds are stored in. Deployments to prod take builds from this bucket        
        """
        super().__init__(scope, id, **kwargs)

        artifact_bucket = s3.Bucket(self,
                                    "react-cicd-cdk-artifacts",
                                    removal_policy=core.RemovalPolicy.DESTROY,
                                    block_public_access=s3.BlockPublicAccess.BLOCK_ALL
                                    )

        core.CfnOutput(self, "artifactbucketname",
                       value=artifact_bucket.bucket_name)

from aws_cdk import (
    aws_s3 as s3,
    core
)


class ArtifactStack(core.Stack):

    def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
        """
        ArtifactStack creates the CloudFormation Stack that creates the Artifact S3 Bucket that stg deployment builds are stored in. Deployments to prod take builds from this bucket        
        """
        super().__init__(scope, id, **kwargs)

        artifact_bucket = s3.Bucket(self,
                                    "react-cicd-cdk-artifacts",
                                    removal_policy=core.RemovalPolicy.DESTROY,
                                    block_public_access=s3.BlockPublicAccess.BLOCK_ALL
                                    )

        core.CfnOutput(self, "artifactbucketname",
                       value=artifact_bucket.bucket_name)

ArtifactStack creates the CloudFormation Stack that creates the Artifact S3 Bucket that stg deployment builds are stored in. Deployments to prod take builds from this bucket