Category: Code Examples

A variety of code examples for AWS CloudFormation, AWS CDK TypeScript, Service Control Policies (SCPs), and AWS CLI commands.


  • How to get an absolute path in Python

    How to get an absolute path in Python

    /

  • How to get a relative path in Python

    How to get a relative path in Python

    /

  • Fix error: Found an encoded list token string in a scalar string context in AWS CDK

    Fix error: Found an encoded list token string in a scalar string context in AWS CDK

    /

  • Example SCP: Deny access to AWS in unsupported regions

    Example SCP: Deny access to AWS in unsupported regions

    /

  • Example SCP: Deny AWS account root user access

    Example SCP: Deny AWS account root user access

    /

  • Example SCP: Deny S3 bucket creation if ACLs are enabled

    Example SCP: Deny S3 bucket creation if ACLs are enabled

    /

  • How to create an AWS CDK Construct

    How to create an AWS CDK Construct

    /

  • How to create an AWS CDK Stack

    How to create an AWS CDK Stack

    /

  • Configure OpenID Connect for Bitbucket in AWS CDK

    Configure OpenID Connect for Bitbucket in AWS CDK

    /

  • Configure OpenID Connect for GitHub in AWS CDK

    Configure OpenID Connect for GitHub in AWS CDK

    /