Skip to content

Commit

Permalink
Merge pull request #116 from aws-samples/4.0.0
Browse files Browse the repository at this point in the history
4.0.0
  • Loading branch information
couchgott authored May 28, 2022
2 parents ba1e1b5 + df71b02 commit 3da9288
Show file tree
Hide file tree
Showing 18 changed files with 56 additions and 292 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@

# Change Log

All notable changes to this project will be documented in this file.

## [4.0.0] - 2021-11-11

### Fixed
- #112: switch parameters and variables to dynamic variables which should enable multi deployments at the same AWS Account.

### Changed
- Removed unused Parameters
- Randomized Database Naming
- upgraded cfn-ses-provider to v0.8.2
- remove of any CW alarms as this should be customized per environment

## [3.0.7] - 2022-05-28

### Fixed
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ The deployment parameters are placed into the bbb-on-aws-param.json or to be set
| BBBApplicationDesiredInstances| 1| The desired amount of Big Blue Button Application servers | As EC2 Autoscaling is currently not aware of ongoing video conferences, i recommend set min=max=desired and not use dynamic here (planned scale out/in) |
| BBBTurnMaxInstances| 1| The maximum amount of Turn Servers to be deployed | at the current state leave it to 1. Multiple Turn servers will need additional configuration on the turnserver
| BBBTurnMinInstances| 1| The minimum amount of Turn Servers to be deployed | at the current state leave it to 1. Multiple Turn servers will need additional configuration on the turnserver
| BBBTurnDesiredInstances| 1| The desired amount of Turn Servers to be deployed | at the current state leave it to 1. Multiple Turn servers will need additional configuration on the turnserver
| BBBDBName| frontendapp| Set a Database Name for Greenlight / Scalelite |
| BBBTurnDesiredInstances| 1| The desired amount of Turn Servers to be deployed | at the current state leave it to 1. Multiple Turn servers will need additional configuration on the turnserver
| BBBDBEngineVersion| 10.7| Set the Postgres version to be used at the Amazon Aurora setup | please refer to the Amazon Aurora [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html) for supported versions
| BBBEnvironmentStage| dev | can be set to "dev","stage" or "prod" | currently stage or prod does change the Amazon Aurora Setup to a Multi-AZ Setup and adds a 2nd Nat-Gateway to the deployment.
| BBBServerlessAuroraMinCapacity | The minimum capacity for the Amazon Aurora Serverless Cluster. | Value has to be >= 2
Expand Down
1 change: 0 additions & 1 deletion bbb-on-aws-param.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"BBBTurnMaxInstances": 1,
"BBBTurnMinInstances": 1,
"BBBTurnDesiredInstances": 1,
"BBBDBName": "frontendapp",
"BBBDBEngineVersion": "10.14",
"BBBEnvironmentStage": "dev",
"BBBEnvironmentName": "bbbonaws",
Expand Down
40 changes: 4 additions & 36 deletions bbb-on-aws-root.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description: >
Disclaimber: Not for Production Use. Demo and Testing purposes only.
Last Modified: 2nd April 2020
Last Modified: 27th May 2022
Authors: David Surey <[email protected]>, Bastian Klein <[email protected]>
Parameters:
Expand Down Expand Up @@ -93,13 +93,6 @@ Parameters:
AllowedPattern: "([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)"
ConstraintDescription: must be a valid email address.
Default: [email protected]
BBBDBName:
Description: Database Name
Type: String
MinLength: '1'
MaxLength: '64'
AllowedPattern: "^[a-zA-Z]+[0-9a-zA-Z_]*$"
Default: frontendapp
BBBDBEngineVersion:
Description: Database engine version for Aurora PostgreSQL
Type: String
Expand Down Expand Up @@ -571,9 +564,6 @@ Resources:
- - "https://s3.amazonaws.com/"
- Fn::ImportValue: !Sub "${BBBStackBucketStack}-BBBStackBucket"
- "/bbb-on-aws-amifinder.template.yaml"
Parameters:
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
Tags:
- Key: Name
Value:
Expand All @@ -594,8 +584,6 @@ Resources:
- "/bbb-on-aws-ses.template.yaml"
Parameters:
BBBHostedZone: !Ref BBBHostedZone
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
Tags:
- Key: Name
Value:
Expand Down Expand Up @@ -632,8 +620,6 @@ Resources:
Fn::Join:
- ","
- Ref: BBBPublicApplicationSubnets
BBBEnvironmentName:
Ref: BBBEnvironmentName
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
BBBEnvironmentType:
Expand Down Expand Up @@ -664,8 +650,6 @@ Resources:
- BBBNetworkStack
- Outputs.BBBVPCs
- Ref: BBBVPCs
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
BBBEnvironmentType:
Ref: BBBEnvironmentType
BBBECSInstanceType:
Expand Down Expand Up @@ -705,8 +689,6 @@ Resources:
Fn::GetAtt:
- BBBSecurityGroupStack
- Outputs.BBBSharedStorageSecurityGroup
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
Tags:
- Key: Name
Value:
Expand Down Expand Up @@ -735,8 +717,6 @@ Resources:
Ref: BBBServerlessAuroraMinCapacity
BBBServerlessAuroraMaxCapacity:
Ref: BBBServerlessAuroraMaxCapacity
BBBDBName:
Ref: BBBDBName
BBBPrivateDBSubnets:
Fn::If:
- BBBNewVPC
Expand Down Expand Up @@ -791,8 +771,6 @@ Resources:
Fn::GetAtt:
- BBBSecurityGroupStack
- Outputs.BBBCACHEDBSecurityGroup
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
Tags:
- Key: Name
Value:
Expand Down Expand Up @@ -824,8 +802,6 @@ Resources:
- Fn::Join:
- ","
- Ref: BBBPrivateApplicationSubnets
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
BBBECSInstanceType:
Ref: BBBECSInstanceType
BBBECSTaskSecurityGroup:
Expand Down Expand Up @@ -892,10 +868,6 @@ Resources:
Fn::GetAtt:
- "BBBAMIFinderStack"
- Outputs.BBBTurnAMIParameter
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
BBBEnvironmentType:
Ref: BBBEnvironmentType
BBBTurnInstanceType:
Ref: BBBTurnInstanceType
BBBTurnMaxInstances:
Expand Down Expand Up @@ -986,8 +958,6 @@ Resources:
Fn::GetAtt:
- "BBBAMIFinderStack"
- Outputs.BBBApplicationAMIParameter
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
BBBApplicationInstanceType:
Ref: BBBApplicationInstanceType
BBBApplicationDataVolumeSize:
Expand Down Expand Up @@ -1087,8 +1057,6 @@ Resources:
Fn::GetAtt:
- "BBBAMIFinderStack"
- Outputs.BBBApplicationAMIParameter
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
BBBApplicationInstanceType:
Ref: BBBApplicationInstanceType
BBBApplicationDataVolumeSize:
Expand Down Expand Up @@ -1133,7 +1101,9 @@ Resources:
- Outputs.BBBVPCs
- Ref: BBBVPCs
BBBDBName:
Ref: BBBDBName
Fn::GetAtt:
- BBBDatabaseStack
- Outputs.BBBDBName
BBBRDSDBSecret:
Fn::GetAtt:
- BBBDatabaseStack
Expand All @@ -1142,8 +1112,6 @@ Resources:
Fn::GetAtt:
- BBBDatabaseStack
- Outputs.BBBRDSDBConnectionSecret
BBBEnvironmentStage:
Ref: BBBEnvironmentStage
BBBSESValidated:
Ref: BBBSESValidated
BBBECSCluster:
Expand Down
2 changes: 1 addition & 1 deletion scripts/route53-handler.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ ExecStart=/usr/local/bin/route53-handler.sh -h INSTANCE_PLACEHOLDER -m create -z
ExecStop=/usr/local/bin/route53-handler.sh -h INSTANCE_PLACEHOLDER -m delete -z ZONE_PLACEHOLDER

[Install]
WantedBy=multi-user.target
WantedBy=network.target network-online.target
2 changes: 1 addition & 1 deletion scripts/scalelite-handler.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ ExecStart=/usr/local/bin/scalelite-handler.sh -p 'SECRET_PLACEHOLDER' -s 'SERVER
ExecStop=/usr/local/bin/scalelite-handler.sh -p 'SECRET_PLACEHOLDER' -s 'SERVER_PLACEHOLDER' -m delete -r AWSREGION_PLACEHOLDER -c ECSCLUSTER_PLACEHOLDER -n ECSMODE_PLACEHOLDER -u TASKSUBNETS_PLACEHOLDER -g TASKSGS_PLACEHOLDER

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target network.target network-online.target
7 changes: 0 additions & 7 deletions templates/bbb-on-aws-amifinder.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ Parameters:
AllowedValues:
- xenial-16.04
- bionic-18.04
BBBEnvironmentStage:
Type: String
Description: Select the appropriate environment
AllowedValues:
- stage
- prod
- dev

Resources:
BBBGetLatestAMILambdaRole:
Expand Down
9 changes: 0 additions & 9 deletions templates/bbb-on-aws-bbbappscalable.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,6 @@ Parameters:
Type: Number
Description: Desired number of appserver instances
Default: 1
BBBEnvironmentStage:
Type: String
Description: Select the appropriate environment
Default: stage
AllowedValues:
- stage
- prod
- dev
BBBTurnSecret:
Description: Secret string for the Turn server
Type: String
Expand Down Expand Up @@ -201,7 +193,6 @@ Resources:
BBBApplicationEC2Role:
Type: AWS::IAM::Role
Properties:
RoleName: BBBApplicationEC2Role
AssumeRolePolicyDocument:
Statement:
- Effect: Allow
Expand Down
13 changes: 0 additions & 13 deletions templates/bbb-on-aws-bbbappsingle.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,6 @@ Parameters:
Type: Number
Description: Desired number of appserver instances
Default: 1
BBBEnvironmentName:
Description: An environment name that is prefixed to resource names
Type: String
Default: bbbonaws
BBBEnvironmentStage:
Type: String
Description: Select the appropriate environment
Default: stage
AllowedValues:
- stage
- prod
- dev
BBBTurnSecret:
Description: Secret string for the Turn server
Type: String
Expand Down Expand Up @@ -184,7 +172,6 @@ Resources:
BBBApplicationEC2Role:
Type: AWS::IAM::Role
Properties:
RoleName: BBBApplicationEC2Role
AssumeRolePolicyDocument:
Statement:
- Effect: Allow
Expand Down
13 changes: 0 additions & 13 deletions templates/bbb-on-aws-bbbturn.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,6 @@ Parameters:
Type: Number
Description: Desired number of turn server instance
Default: 1
BBBEnvironmentStage:
Type: String
Description: Select the appropriate environment
AllowedValues:
- stage
- prod
- dev
BBBEnvironmentType:
Description: 'Defines the environment type. Allowed values: scalable, single'
Type: String
AllowedValues:
- scalable
- single
BBBTurnSecurityGroup:
Description: Security Group that should be assigned for the turn server
Type: String
Expand Down
10 changes: 1 addition & 9 deletions templates/bbb-on-aws-cachedb.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,12 @@ Parameters:
AllowedValues:
- single-az
- cross-az
BBBEnvironmentStage:
Type: String
Description: Select the appropriate environment
AllowedValues:
- stage
- prod
- dev

Resources:

BBBCacheSubnetGroup:
Type: AWS::ElastiCache::SubnetGroup
Properties:
Description: !Sub CacheSubnetGroup-${BBBEnvironmentStage}
Description: !Sub CacheSubnetGroup-${AWS::StackName}
SubnetIds: !Ref BBBPrivateDBSubnets

BBBParametersGroup:
Expand Down
Loading

0 comments on commit 3da9288

Please sign in to comment.