Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Minor

Rich Turnerb9e6d6dbd63a
diff --git a/.ci_cd/aws/cloudformation-create-ec2.yml b/.ci_cd/aws/cloudformation-create-ec2.yml
index 4a948fc33..32f9134ff 100644
--- a/.ci_cd/aws/cloudformation-create-ec2.yml
+++ b/.ci_cd/aws/cloudformation-create-ec2.yml
@@ -29,7 +29,7 @@ Parameters:
Description: FQDN for host
Type: String
#AllowedPattern: "^((?!-))(xn--)?[a-z0-9][a-z0-9-_]{0,61}[a-z0-9]{0,1}\.(xn--)?([a-z0-9\-]{1,61}|[a-z0-9-]{1,30}\.[a-z]{2,})$"
- ConstraintDescription: Must be a valid FQDN
+ Default: ""
InstanceType:
Description: EC2 instance type (don't change it unless you know what you are doing)
Type: String
@@ -38,6 +38,7 @@ Parameters:
# then we need to be flexible here and bear in mind use case and acceptable cost.
Default: t4g.small
AllowedValues:
+ - t4g.micro
- t4g.small
- t4g.medium
- t4g.large
@@ -49,9 +50,11 @@ Parameters:
Type: String
#AllowedPattern: "^((?!-))(xn--)?[a-z0-9][a-z0-9-_]{0,61}[a-z0-9]{0,1}\.(xn--)?([a-z0-9\-]{1,61}|[a-z0-9-]{1,30}\.[a-z]{2,})$"
ConstraintDescription: Must be a valid FQDN
+ Default: ""
DNSHostedZoneRoleArn:
Description: Role ARN that can be assumed for updating DNS A record (if Hosted Zone in another account)
Type: String
+ Default: ""
ElasticIP:
Description: Assign elastic IP address
Type: String
@@ -61,19 +64,25 @@ Parameters:
Default: false
SMTPHost:
Type: String
+ Default: ""
SMTPUser:
Type: String
+ Default: ""
SMTPPassword:
Type: String
+ Default: ""
SMTPSecret:
Type: String
Description: SMTP CLI user secret (used to generate an SMTP password from)
+ Default: ""
SMTPRegion:
Type: String
Description: SMTP CLI user region (used to generate an SMTP password from)
+ Default: ""
SMTPORArn:
Description: SES Verified identity trust policy ARN for SMTP X-Headers
Type: String
+ Default: ""
Conditions:
CreateDNSRecord: !Equals [!Ref DNSHostedZoneRoleArn, ""]
diff --git a/.ci_cd/aws/provision_host.sh b/.ci_cd/aws/provision_host.sh
index ced64aeab..d3b48d336 100644
--- a/.ci_cd/aws/provision_host.sh
+++ b/.ci_cd/aws/provision_host.sh
@@ -237,6 +237,7 @@ if [ "$PROVISION_S3_BUCKET" != 'false' ]; then
echo "Bucket creation failed"
else
echo "Bucket created successfully '$LOCATION'"
+ aws s3api put-bucket-versioning --bucket $HOST --versioning-configuration Status=Enabled
fi
fi
fi