Skip to content

Instantly share code, notes, and snippets.

View FlemmingBehrend's full-sized avatar

Flemming Behrend FlemmingBehrend

  • Topdanmark A/S
  • Smørum, Denmark
  • 22:38 (UTC +02:00)
View GitHub Profile
@FlemmingBehrend
FlemmingBehrend / minimal-config-alz.md
Created January 16, 2023 11:09
AWS Landing Zone - Minimal Configuration

Landing Zone configuration

accounts-config.yaml

mandatoryAccounts:
  - name: Management
    description: >-
      The management (primary) account. Do not change the name field for this
      mandatory account. Note, the account name key does not need to match the
@FlemmingBehrend
FlemmingBehrend / Cross account example.md
Last active August 26, 2022 12:46
How to call a AWS Lambda function from a AWS Lambda function in another account. Cloudformation and CDK example.

AWS Lambda cross account example

--------------------------     --------------------------
| Account 111122223333   |     | Account 999988887777   |
| OrgId: o-aaa1111aaa    |     | OrgId: o-bbb2222bbb    |
| Region: eu-west-1      |     | Region: eu-west-1      |
|                        |     |                        |
|    ---------------     |     |     ---------------    |
| | functionA |<--------------2-| functionB | |
#!/usr/bin/env bash
PROFILE=$1
REGION=eu-west-1
if [[ -z PROFILE ]]; then
echo "Usage: ./clean-account.sh PROFILE"
exit 1
fi
echo "Starting to clean up account for profile $PROFILE"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Animated List Items in Bootstrap</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
# Tips
## Sub inside ImportValue
Fn::ImportValue:
Fn::Sub:
- string-${type}
- { type: 'variable' }
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
@FlemmingBehrend
FlemmingBehrend / all_aws_managed_policies.json
Created November 1, 2017 12:31 — forked from gene1wood/all_aws_managed_policies.json
A list of all AWS managed policies and they're policy documents as well as a short script to generate the list
{
"AWSAccountActivityAccess": {
"Arn": "arn:aws:iam::aws:policy/AWSAccountActivityAccess",
"AttachmentCount": 0,
"CreateDate": "2015-02-06T18:41:18+00:00",
"DefaultVersionId": "v1",
"Document": {
"Statement": [
{
"Action": [
This file has been truncated, but you can view the full file.
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli '-ddd',
npm verb cli 'node-sass' ]
npm info using [email protected]
npm info using [email protected]
npm sill loadCurrentTree Starting
npm sill install loadCurrentTree
> [email protected] install D:\temp\sasstest\node_modules\node-sass
> node scripts/install.js
Start downloading binary at https://github.com/sass/node-sass/releases/download/v3.11.2/win32-x64-48_binding.node
> [email protected] postinstall D:\temp\sasstest\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe D:\temp\sasstest\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=