Skip to content
Snippets Groups Projects

Issue #3346378: Create BearerToken during Tenant creation and send it to the CFn template during Cloud Orchestrator launch

Merged Issue #3346378: Create BearerToken during Tenant creation and send it to the CFn template during Cloud Orchestrator launch
5 files
+ 70
14
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -80,6 +80,7 @@ Metadata:
- DrupalSiteEmail
- DrupalSiteName
- CloudOrchestratorVersion
- BearerToken
- Label:
default: Template Configurations
Parameters:
@@ -218,6 +219,10 @@ Parameters:
Description: Version of the Cloud Orchestrator to install.
Default: 5.x-dev
Type: String
BearerToken:
NoEcho: true
Description: Bearer Token for API calls
Type: String
CreationTimeout:
Description: The length of time that CloudFormation waits until template
creation is considered unsuccessful and is deleted.
@@ -911,6 +916,9 @@ Resources:
# Run cron once to import initial data.
sudo docker exec -w $DOCKER_DIR $CONTAINER_NAME sh -c "drush cron"
# Setup BearerToken api keys. Placeholder for now.
echo '${BearerToken}'
sudo tee -a $SETTINGS_FILE >/dev/null <<EOF
\$settings['memcache']['servers'] = ['memcache:11211' => 'default'];
\$settings['memcache']['bins'] = ['default' => 'default'];
@@ -972,6 +980,8 @@ Resources:
CFnStackRegion:
Ref: AWS::Region
JSONData: !Join ['', [!Ref JSONData1, !Ref JSONData2, !Ref JSONData3] ]
BearerToken:
Ref: BearerToken
Tags:
- Key: Application
Value: !Ref 'AWS::StackName'
Loading