This repository has been archived by the owner on Nov 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding S3 Bucket Service Using ExternalName
**Why:** * Allows local traffic to be configured via operator internally * Updates sqs files to sqsqueues **This change addresses the need by:** * closes #47 Signed-off-by: Christopher Hein <me@christopherhein.com>
- Loading branch information
1 parent
c6a8e67
commit 4f40351
Showing
8 changed files
with
418 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: 'AWS Operator - Amazon DynamoDB' | ||
Parameters: | ||
Namespace: | ||
Description: >- | ||
This is the namespace for the Kubernetes object. | ||
Type: String | ||
ResourceVersion: | ||
Type: String | ||
Description: >- | ||
This is the resource version for the Kubernetes object. | ||
ResourceName: | ||
Description: >- | ||
This is the resource name for the Kubernetes object | ||
Type: String | ||
ClusterName: | ||
Description: >- | ||
This is the cluster name for the operator | ||
Type: String | ||
TableName: | ||
Description: >- | ||
Must contain only lowercase letters, numbers and hyphens. | ||
Type: String | ||
HashAttributeName: | ||
Type: String | ||
Description: Name of the Hash key | ||
HashAttributeType: | ||
Type: String | ||
AllowedValues: | ||
- S | ||
- N | ||
- B | ||
Default: "S" | ||
Description: AttributeType for Hash key | ||
RangeAttributeName: | ||
Type: String | ||
Description: Name of the Range key | ||
RangeAttributeType: | ||
Type: String | ||
AllowedValues: | ||
- S | ||
- N | ||
- B | ||
Default: "S" | ||
Description: AttributeType for the Range key | ||
ReadCapacityUnits: | ||
Type: String | ||
Description: Read ReadCapacity Units | ||
Default: "5" | ||
WriteCapacityUnits: | ||
Type: String | ||
Description: Write Capacity Units | ||
Default: "5" | ||
Resources: | ||
DynamoDBTable: | ||
Type: "AWS::DynamoDB::Table" | ||
Properties: | ||
TableName: !Ref TableName | ||
KeySchema: | ||
- | ||
AttributeName: !Ref HashAttributeName | ||
KeyType: "HASH" | ||
- | ||
AttributeName: !Ref RangeAttributeName | ||
KeyType: "RANGE" | ||
AttributeDefinitions: | ||
- | ||
AttributeName: !Ref HashAttributeName | ||
AttributeType: "S" | ||
- | ||
AttributeName: !Ref RangeAttributeName | ||
AttributeType: "S" | ||
ProvisionedThroughput: | ||
ReadCapacityUnits: !Ref ReadCapacityUnits | ||
WriteCapacityUnits: !Ref WriteCapacityUnits | ||
Tags: | ||
- Key: Namespace | ||
Value: !Ref Namespace | ||
- Key: ResourceVersion | ||
Value: !Ref ResourceVersion | ||
- Key: ResourceName | ||
Value: !Ref ResourceName | ||
- Key: ClusterName | ||
Value: !Ref ClusterName | ||
- Key: Heritage | ||
Value: operator.aws | ||
Outputs: | ||
TableName: | ||
Description: Name of the DynamoDB Table | ||
Value: !Ref DynamoDBTable | ||
TableArn: | ||
Description: Arn of the DynamoDB Table | ||
Value: !GetAtt DynamoDBTable.Arn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: 'AWS Operator - Amazon S3 Bucket' | ||
Parameters: | ||
Namespace: | ||
Description: >- | ||
This is the namespace for the Kubernetes object. | ||
Type: String | ||
ResourceVersion: | ||
Type: String | ||
Description: >- | ||
This is the resource version for the Kubernetes object. | ||
ResourceName: | ||
Description: >- | ||
This is the resource name for the Kubernetes object | ||
Type: String | ||
ClusterName: | ||
Description: >- | ||
This is the cluster name for the operator | ||
Type: String | ||
BucketName: | ||
Description: >- | ||
Must contain only lowercase letters, numbers, periods (.), and hyphens | ||
(-),Cannot end in numbers | ||
Type: String | ||
Default: apps3bucket | ||
LoggingPrefix: | ||
Description: >- | ||
Must contain only lowercase letters, numbers, periods (.), and hyphens | ||
(-),Cannot end in numbers | ||
Type: String | ||
Default: Archive | ||
EnableLogging: | ||
Description: enable or discable S3 logging | ||
Type: String | ||
AllowedValues: | ||
- 'true' | ||
- 'false' | ||
Default: 'true' | ||
EnableGlacierLifeCycle: | ||
Description: enable archiving to Glacier Storage | ||
Type: String | ||
AllowedValues: | ||
- 'true' | ||
- 'false' | ||
Default: 'false' | ||
GlacierLifeCycleTransitionInDays: | ||
Description: Define how many days objects should exist before being moved to Glacier | ||
Type: String | ||
Default: '0' | ||
EnableVersioning: | ||
Description: enable versioning | ||
Type: String | ||
AllowedValues: | ||
- 'true' | ||
- 'false' | ||
Default: 'false' | ||
LifeCyclePrefix: | ||
Description: >- | ||
Must contain only lowercase letters, numbers, periods (.), and hyphens | ||
(-),Cannot end in numbers | ||
Type: String | ||
Default: Archive | ||
BucketAccessControl: | ||
Description: define if the bucket can be accessed from public or private locations | ||
Type: String | ||
AllowedValues: | ||
- Private | ||
- PublicRead | ||
- PublicReadWrite | ||
- AuthenticatedRead | ||
- LogDeliveryWrite | ||
- BucketOwnerRead | ||
- BucketOwnerFullControl | ||
- AwsExecRead | ||
Default: "Private" | ||
Mappings: {} | ||
Conditions: | ||
UseLogging: !Equals | ||
- !Ref EnableLogging | ||
- 'true' | ||
UseGlacierLifeCycle: !Equals | ||
- !Ref EnableGlacierLifeCycle | ||
- 'true' | ||
UseVersioning: !Equals | ||
- !Ref EnableVersioning | ||
- 'true' | ||
Resources: | ||
S3bucket: | ||
Type: 'AWS::S3::Bucket' | ||
Properties: | ||
BucketName: !Ref BucketName | ||
AccessControl: !Ref BucketAccessControl | ||
LifecycleConfiguration: | ||
Rules: | ||
- Id: GlacierRule | ||
Prefix: !Ref LifeCyclePrefix | ||
Status: Enabled | ||
ExpirationInDays: '365' | ||
Transitions: | ||
- TransitionInDays: !Ref GlacierLifeCycleTransitionInDays | ||
StorageClass: Glacier | ||
LoggingConfiguration: !If | ||
- UseLogging | ||
- DestinationBucketName: !Ref LoggingBucket | ||
LogFilePrefix: !Ref LoggingPrefix | ||
- !Ref 'AWS::NoValue' | ||
Tags: | ||
- Key: Namespace | ||
Value: !Ref Namespace | ||
- Key: ResourceVersion | ||
Value: !Ref ResourceVersion | ||
- Key: ResourceName | ||
Value: !Ref ResourceName | ||
- Key: ClusterName | ||
Value: !Ref ClusterName | ||
- Key: Heritage | ||
Value: operator.aws | ||
VersioningConfiguration: !If | ||
- UseVersioning | ||
- Status: Enabled | ||
- !Ref 'AWS::NoValue' | ||
DeletionPolicy: Retain | ||
LoggingBucket: | ||
Condition: UseLogging | ||
Type: 'AWS::S3::Bucket' | ||
DeletionPolicy: Retain | ||
Properties: | ||
AccessControl: LogDeliveryWrite | ||
BucketName: !Join | ||
- '' | ||
- - !Ref BucketName | ||
- logging | ||
Outputs: | ||
BucketName: | ||
Value: !Ref S3bucket | ||
Description: Name of the sample Amazon S3 bucket. | ||
BucketArn: | ||
Value: !GetAtt | ||
- S3bucket | ||
- Arn | ||
Description: Name of the Amazon S3 bucket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: 'AWS Service Broker - Amazon SNS (qs-1nt0fs93c)' | ||
Parameters: | ||
Namespace: | ||
Description: >- | ||
This is the namespace for the Kubernetes object. | ||
Type: String | ||
ResourceVersion: | ||
Type: String | ||
Description: >- | ||
This is the resource version for the Kubernetes object. | ||
ResourceName: | ||
Description: >- | ||
This is the resource name for the Kubernetes object | ||
Type: String | ||
ClusterName: | ||
Description: >- | ||
This is the cluster name for the operator | ||
Type: String | ||
DisplayName: | ||
Type: String | ||
Description: >- | ||
What should the SNS Topics name display as. | ||
Resources: | ||
SNSTopic: | ||
Type: 'AWS::SNS::Topic' | ||
|
||
Outputs: | ||
TopicName: | ||
Value: !Ref SNSTopic | ||
Description: Name of the topic |
Oops, something went wrong.