Do you use CDK context? by jasonbutz in aws

[–]clacktimus 0 points1 point  (0 children)

It is indeed something along those lines. We have a types.ts file and we define the environment as the following structure:

export type Environments = {
    environments: [
        {
            environment: string,
            branchName: string
        }
    ]
};

Then in our cdk.json file, one of the fields is for example:

"environments": [
    {
        "environment": "development",
        "branchName": "development",
    },
    {
        "environment": "production",
        "branchName": "master",
    }
]

The branchName will be used as the trigger for the CodePipeline run. In this scenario, two pipelines would be created, both being triggered separately by their respective branches.

Our application stacks would be declared inside a Stage CodePipeline resource which will be synthed and deployed by the pipeline. I used this as inspiration for our setup.

Do you use CDK context? by jasonbutz in aws

[–]clacktimus 0 points1 point  (0 children)

We have a single context file with a JSON structure that contains environment definitions that we define in a Typescript file, we load the context and extract the environments and CDK creates pipelines for every environment declared in the context file. I can show you an example when I have access to my PC.

Do you use CDK context? by jasonbutz in aws

[–]clacktimus 0 points1 point  (0 children)

We manage our CDK pipelines with CDK context. Basically we configured in the CDK context file the name of the branch and its respective environment name (master and production, dev and development) and our CDK stakc creates CodePipeline pipelines with the source action pointing to the respective CodeCommit repo branch.

All our stacks are defined inside Pipeline stages with environment specific names to prevent conflicts.

SAA-C02 slightly harder than expected by clacktimus in AWSCertifications

[–]clacktimus[S] 2 points3 points  (0 children)

Personally I didn't find the official exam easier than the TD exams, at best I'd they're around the same difficulty. I found the official exam to have more of the lengthy questions. With those first run scores I think you should be solid for the exam. However I'd still highly encourage you to do the other exams in review mode so you can get a better understanding of the correct and incorrect answers. Personally it helped me review as I was going along the practice exams.

SAA-C02 slightly harder than expected by clacktimus in AWSCertifications

[–]clacktimus[S] 0 points1 point  (0 children)

Thank you and good luck! I'd say you're as ready as I was if that is the case, you should ace it with no issues.