Skip to content

Instantly share code, notes, and snippets.

View paflopes's full-sized avatar

Phillipe Lopes paflopes

View GitHub Profile
@paflopes
paflopes / template.yaml
Created February 7, 2019 15:28 — forked from vsomayaji/template.yaml
Using a CFN custom resource to generate a random password
Resources:
PasswordGeneratorLogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Sub /aws/lambda/${AWS::StackName}-PasswordGenerator
RetentionInDays: 1
PasswordGeneratorRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
@paflopes
paflopes / README.md
Created March 21, 2017 19:49 — forked from adambom/README.md
Backup Kubernetes Cluster State

Run this in order to backup all you k8s cluster data. It will be saved in a folder bkp. To restore the cluster, you can run kubectl apply -f bkp.

Please note: this recovers all resources correctly, including dynamically generated PV's. However, it will not recover ELB endpoints. You will need to update any DNS entries manually, and manually remove the old ELB's.

Please note: This has not been tested with all resource types. Supported resource types include:

  • services
  • replicationcontrollers
  • secrets
  • deployments
  • horizontal pod autoscalers