Skip to content

Instantly share code, notes, and snippets.

View kichik's full-sized avatar
GitHub running

Amir Szekely kichik

GitHub running
View GitHub Profile
kichik /
Created February 3, 2023 22:35
Custom resource to automatically associate domain to App Runner service
from aws_cdk import (
aws_apprunner_alpha as apprunner,
aws_lambda as lambda_,
aws_route53 as route53,
aws_logs as logs,
kichik /
Created December 12, 2021 04:13
Avoiding CDK Pipelines Support Stacks
import aws_cdk.core as core # CDK 1
except ImportError:
import aws_cdk as core # CDK 2
from aws_cdk import aws_codepipeline as codepipeline
from aws_cdk import aws_kms as kms
from aws_cdk import aws_s3 as s3
from aws_cdk import pipelines
app = core.App()
kichik / KeepDbStopped.yml
Last active February 9, 2024 15:31
CloudFormation template that stops RDS from automatically starting back up
View KeepDbStopped.yml
# aws cloudformation deploy --template-file KeepDbStopped.yml --stack-name stop-db --capabilities CAPABILITY_IAM --parameter-overrides DB=arn:aws:rds:us-east-1:XXX:db:XXX
Description: Automatically stop RDS instance every time it turns on due to exceeding the maximum allowed time being stopped
Description: ARN of database that needs to be stopped
Type: String
AllowedPattern: arn:aws:rds:[a-z0-9\-]+:[0-9]+:db:[^:]*
Description: Maximum number of minutes to wait between database is automatically started and the time it's ready to be shut down. Extend this limit if your database takes a long time to boot up.
Type: Number
kichik /
Created April 8, 2019 06:53

Keybase proof

I hereby claim:

  • I am kichik on github.
  • I am kichik ( on keybase.
  • I have a public key whose fingerprint is 4E00 9AF2 0152 8344 7D5A 349F 3BC9 8C15 5628 BF8B

To claim this, I am signing this object: