100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Minor
Rich Turneraf0b3973df06
diff --git a/.ci_cd/aws/provision_host.sh b/.ci_cd/aws/provision_host.shindex 21a7fd30e..ba54e6c75 100644--- a/.ci_cd/aws/provision_host.sh+++ b/.ci_cd/aws/provision_host.sh@@ -43,7 +43,7 @@ elsefi# Optionally login if AWS_ENABLED != 'true'-#source "${awsDir}login.sh"+source "${awsDir}login.sh"ACCOUNT_PROFILE=if [ -n "$ACCOUNT_NAME" ]; then@@ -55,7 +55,7 @@ fiSTACK_NAME=$(tr '.' '-' <<< "$HOST")# Check stack doesn't already exist-#STATUS=$(aws cloudformation describe-stacks --stack-name $STACK_NAME --query "Stacks[0].StackStatus" --output text $ACCOUNT_PROFILE 2>/dev/null)+STATUS=$(aws cloudformation describe-stacks --stack-name $STACK_NAME --query "Stacks[0].StackStatus" --output text $ACCOUNT_PROFILE 2>/dev/null)if [ -n "$STATUS" ] && [ "$STATUS" != 'DELETE_COMPLETE' ]; thenecho "Stack already exists for this host '$HOST' current status is '$STATUS'"@@ -128,7 +128,7 @@ EOFif [ -n "$DNSHostedZoneRoleArn" ]; thenPARAMS="$PARAMS ParameterKey=DNSHostedZoneRoleArn,ParameterValue=$DNSHostedZoneRoleArn"fi-exit 1+# Create standard stack resources in specified accountSTACK_ID=$(aws cloudformation create-stack --capabilities CAPABILITY_NAMED_IAM --stack-name $STACK_NAME --template-body file://$TEMPLATE_PATH --parameters $PARAMS --output text $ACCOUNT_PROFILE)