Skip to content

Instantly share code, notes, and snippets.

Avatar

Soenke Ruempler s0enke

View GitHub Profile
@s0enke
s0enke / host_id_new
Created Feb 17, 2020
Mit neuem Host-ID Tool
View host_id_new
PS C:\gfos\jdk\bin> java -jar .\HostId.jar
display name : Software Loopback Interface 1
name : lo
index : 1
loopback : true
p2p : false
up : true
virtual : false
network interface Software Loopback Interface 1 is invalid: no hardware address
View scp.json
{
"Sid": "ProtectBackups",
"Condition": {
"ArnNotLike": {
"aws:PrincipalARN": "arn:aws:iam::*:role/AWSControlTowerExecution"
}
},
"Action": [
"backup:Delete*",
"backup:Update*"
View aws_backup_sample.yaml
AWSTemplateFormatVersion: "2010-09-09"
Resources:
BackupRole:
Type: "AWS::IAM::Role"
Properties:
RoleName: SampleBackupRole
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
@s0enke
s0enke / manifest.yaml
Created May 14, 2019
Restrict AWS Org to Regions
View manifest.yaml
# Landing Zone Service Control Policies
organization_policies:
...
- name: restrict-to-eu
description: Restrict to EU regions
policy_file: policies/restrict_to_eu_regions.json
#Apply to accounts in the following OU(s)
apply_to_accounts_in_ou:
- core
- applications
@s0enke
s0enke / ansible_playbook.yaml
Created Mar 16, 2017
Ansible Playbook to deploy a CloudFormation stack
View ansible_playbook.yaml
# call me with
# $ ansible-playbook ansible_playbook.yaml
---
- hosts: localhost
connection: local
gather_facts: no
tasks:
- cloudformation:
stack_name: "stack_name"
@s0enke
s0enke / gist:97920702cf1cdb4f45411e926ca028a3
Created Feb 10, 2017
cloud-custodian error message when running as Lambda function
View gist:97920702cf1cdb4f45411e926ca028a3
policies:
- name: s3-bucket-check
resource: s3
mode:
role: arn:aws:iam::xxxxx:role/lambda-basic-execution
type: periodic
schedule: "rate(10 minutes)"
@s0enke
s0enke / crashlog.txt
Last active Aug 29, 2015
terraform crash
View crashlog.txt
Crash Log:
```
2015/03/05 22:35:57 [INFO] Terraform version: 0.4.0 dev 9270af6dfad0264bbaf50d91b8bc20e4a65a95eb
2015/03/05 22:35:57 Detected home directory from env var: /home/soenke
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: atlas = /home/soenke/projects/go/bin/terraform-provider-atlas
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: aws = /home/soenke/projects/go/bin/terraform-provider-aws
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: cloudflare = /home/soenke/projects/go/bin/terraform-provider-cloudflare
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: cloudstack = /home/soenke/projects/go/bin/terraform-provider-cloudstack
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: consul = /home/soenke/projects/go/bin/terraform-provider-consul
2015/03/05 22:35:57 [DEBUG] Discoverd plugin: digitalocean = /home/soenke/projects/go/bin/terraform-provider-digitalocean