Skip to content

Instantly share code, notes, and snippets.

@rafaftahsin
rafaftahsin / README.md
Created February 20, 2021 18:44 — forked from andrewodri/README.md
Create and Validate an ACM Certificate

This script performs the following actions:

  1. Creates a TLS certificate in ACM
  2. Upserts a validation CNAME record in Route 53
  3. Waits for the validation CNAME record to complete/update
  4. Waits for the certificate to validate and issue
  5. Outputs a description of the certificate

This obviously assumes that your domain's DNS is hosted on Route 53. It also uses the AWS credentials and region for the environment it is executed in.

@rafaftahsin
rafaftahsin / main.sh
Last active July 5, 2023 10:00
Size of Total Storage in CodeArtifact in a region
#!/bin/bash
export AWS_PROFILE=profile
domains=$(aws codeartifact list-domains | jq -r ".domains[].name")
total_artifactory_size=0
for d in $domains; do
repos=$(aws codeartifact list-repositories-in-domain --domain $d | jq -r ".repositories[].name")
for r in $repos; do