Skip to content

Cloud extension + some extra things (see list) #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
715 changes: 715 additions & 0 deletions platform-controller/AWS/bastion.yaml

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions platform-controller/AWS/swarm-mode/kms.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Docker Swarm - KMS'

# https://github.com/pgarbe/containers_on_aws

Resources:

SwarmTokenKey:
Type: "AWS::KMS::Key"
Properties:
Description: "KMS key to encrypt swarm join tokens"
KeyPolicy:
Id: key-docker-swarm
Version: '2012-10-17'
Statement:
- Sid: Enable IAM User Permissions
Effect: Allow
Principal:
AWS:
- !Sub arn:aws:iam::${AWS::AccountId}:root
Action: kms:*
Resource: "*"
# - Sid: Allow access for Key Administrators
# Effect: Allow
# Principal:
# AWS:
# - !Sub arn:aws:iam::${AWS::AccountId}:root
# Action:
# - kms:Create*
# - kms:Describe*
# - kms:Enable*
# - kms:List*
# - kms:Put*
# - kms:Update*
# - kms:Revoke*
# - kms:Disable*
# - kms:Get*
# - kms:Delete*
# - kms:TagResource
# - kms:UntagResource
# - kms:ScheduleKeyDeletion
# - kms:CancelKeyDeletion
# Resource: "*"
# - Sid: Allow use of the key
# Effect: Allow
# Principal:
# AWS:
# - !Sub arn:aws:iam::${AWS::AccountId}:root
# Action:
# - kms:Encrypt
# - kms:Decrypt
# - kms:ReEncrypt*
# - kms:GenerateDataKey*
# - kms:DescribeKey
# Resource: "*"
# - Sid: Allow attachment of persistent resources
# Effect: Allow
# Principal:
# AWS:
# - !Sub arn:aws:iam::${AWS::AccountId}:root
# Action:
# - kms:CreateGrant
# - kms:ListGrants
# - kms:RevokeGrant
# Resource: "*"
# Condition:
# Bool:
# kms:GrantIsForAWSResource: true
Outputs:

SwarmTokenKey:
Value: !Ref SwarmTokenKey

SwarmTokenKeyArn:
Value: !GetAtt SwarmTokenKey.Arn
Export:
Name: !Sub '${AWS::StackName}-SwarmTokenKeyArn'
Loading