templates/etleap-main.yaml [949:974]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                export ETLEAP_SECRET_APPLICATION_SECRET="$(aws secretsmanager get-secret-value --secret-id ${DeploymentSecret} | jq -r .SecretString)"
                export ETLEAP_RDS_HOSTNAME="${RDSHostname}"
                export ETLEAP_EMR_HOSTNAME="${EMRHostname}"
                export ETLEAP_YSJES_HOSTNAME="${MasterAppPrivateIp}"
                export ETLEAP_MAIN_APP_IP="${MasterAppPrivateIp}"
                export MARKETPLACE_DEPLOYMENT="${MarketplaceDeployment}"
                export ETLEAP_AWS_ACCCOUNT_ID="${AWS::AccountId}"
              owner: ubuntu:ubuntu

            runcmd:
            - aws configure set region `curl --silent http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region`
            - 'sed -i ''s/"dns": \[".*"\]/"dns": ["169.254.169.253"]/g'' /etc/docker/daemon.json'
            - service docker restart
            - . /home/ubuntu/.etleap &&/home/ubuntu/db-init.sh $(aws secretsmanager get-secret-value --secret-id ${RootDBPassword} | jq -r .SecretString) $(aws secretsmanager get-secret-value --secret-id ${EtleapDBPassword} | jq -r .SecretString) $(aws secretsmanager get-secret-value --secret-id ${EtleapDBSalesforcePassword} | jq -r .SecretString) ${DeploymentId}
            - yes | ssh-keygen -f /home/ubuntu/.ssh/id_rsa -N ''
            - cat /home/ubuntu/.ssh/id_rsa.pub >> /home/ubuntu/.ssh/authorized_keys
            - su ubuntu -c ". /home/ubuntu/.etleap && /home/ubuntu/cron-deploy-customervpc.sh"
          - DeploymentId: !Ref DeploymentId
            RootDBPassword: !Ref EtleapDBRootPassword
            EtleapDBPassword: !Ref EtleapDBPassword
            EtleapDBSalesforcePassword: !Ref EtleapDBSalesforcePassword
            EtleapAdminPassword: !Ref EtleapAdminPassword
            EtleapSetupPassword: !Ref SetupPassword
            S3IntermediateRole: !GetAtt S3IntermediateRole.Arn
            DeploymentSecret: !If [GenerateNewDeploymentSecret, !Ref GeneratedDeploymentSecret, !Ref UserSpecifiedDeploymentSecret]
            RDSHostname: !GetAtt EtleapDB.Endpoint.Address
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/etleap-main.yaml [1132:1157]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                export ETLEAP_SECRET_APPLICATION_SECRET="$(aws secretsmanager get-secret-value --secret-id ${DeploymentSecret} | jq -r .SecretString)"
                export ETLEAP_RDS_HOSTNAME="${RDSHostname}"
                export ETLEAP_EMR_HOSTNAME="${EMRHostname}"
                export ETLEAP_YSJES_HOSTNAME="${MasterAppPrivateIp}"
                export ETLEAP_MAIN_APP_IP="${MasterAppPrivateIp}"
                export MARKETPLACE_DEPLOYMENT="${MarketplaceDeployment}"
                export ETLEAP_AWS_ACCCOUNT_ID="${AWS::AccountId}"
              owner: ubuntu:ubuntu

            runcmd:
            - aws configure set region `curl --silent http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region`
            - 'sed -i ''s/"dns": \[".*"\]/"dns": ["169.254.169.253"]/g'' /etc/docker/daemon.json'
            - service docker restart
            - . /home/ubuntu/.etleap &&/home/ubuntu/db-init.sh $(aws secretsmanager get-secret-value --secret-id ${RootDBPassword} | jq -r .SecretString) $(aws secretsmanager get-secret-value --secret-id ${EtleapDBPassword} | jq -r .SecretString) $(aws secretsmanager get-secret-value --secret-id ${EtleapDBSalesforcePassword} | jq -r .SecretString) ${DeploymentId}
            - yes | ssh-keygen -f /home/ubuntu/.ssh/id_rsa -N ''
            - cat /home/ubuntu/.ssh/id_rsa.pub >> /home/ubuntu/.ssh/authorized_keys
            - su ubuntu -c ". /home/ubuntu/.etleap && /home/ubuntu/cron-deploy-customervpc.sh"
          - DeploymentId: !Ref DeploymentId
            RootDBPassword: !Ref EtleapDBRootPassword
            EtleapDBPassword: !Ref EtleapDBPassword
            EtleapDBSalesforcePassword: !Ref EtleapDBSalesforcePassword
            EtleapAdminPassword: !Ref EtleapAdminPassword
            EtleapSetupPassword: !Ref SetupPassword
            S3IntermediateRole: !GetAtt S3IntermediateRole.Arn
            DeploymentSecret: !If [GenerateNewDeploymentSecret, !Ref GeneratedDeploymentSecret, !Ref UserSpecifiedDeploymentSecret]
            RDSHostname: !GetAtt EtleapDB.Endpoint.Address
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



