diff --git a/CHANGELOG.md b/CHANGELOG.md index ae62be8..8b336ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,3 +19,8 @@ Upgrade Node version from 14 to 18 and multiple project dependencies. ## v2.0.1 (March 2024) Add workaround to avoid stale connections when DNS host changes IP address. + +## v2.0.2 (July 2024) + +Fix Nginx resolver configuration to avoid 499 http error codes. +In main CFN template allow to select between t2.micro and t3a.micro EC2 instance types. diff --git a/README.md b/README.md index cf8e5c4..aa2e283 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE) -![version](https://img.shields.io/badge/version-2.0.1-blue) +![version](https://img.shields.io/badge/version-2.0.2-blue) The Open Source project has one clear but distinctive focus - Enabling AWS customers to automatically onboard their IoT Devices into the AWS IoT Core (device-onboarding-as-a-Service) following a self-managed approach. Customers with the "1NCE Connect" product can map their IoT devices via SIM cards to certificates for the AWS IoT Core. The certificates allow publishing, subscription, and connection to AWS IoT Core MQTT broker. @@ -65,6 +65,10 @@ E-mail for [SNS Success Topic](#success-topic) subscription. Accepts empty strin ##### SNSFailureTopicSubscriptionEmail: E-mail for [SNS Failure Topic](#failure-topic) subscription. Accepts empty string for no subscription or valid e-mail address. If an e-mail address is provided, please try to approve the approval request immediately to not miss any events about the stack rollout process.
+##### EC2InstanceType: +Instance Type used for EC2 instance. + +Default: t2.micro


# Low-level docs diff --git a/deploymentValues.yaml b/deploymentValues.yaml index ff6c8b4..dff6845 100644 --- a/deploymentValues.yaml +++ b/deploymentValues.yaml @@ -1,4 +1,4 @@ -version: V2.0.1 +version: V2.0.2 apiGatewayUrlSSMParamName: openvpn-onboarding-api-gateway-url onboardingPathSSMParamName: openvpn-onboarding-path proxyServerSSMParamName: openvpn-onboarding-proxy-server diff --git a/nginxConfig/nginx.conf b/nginxConfig/nginx.conf index 6ee380d..6ce585f 100644 --- a/nginxConfig/nginx.conf +++ b/nginxConfig/nginx.conf @@ -6,7 +6,8 @@ server { server_name _; location / { - proxy_pass ${ONBOARDING_ENDPOINT}; + set ${DOLLAR}lambda_endpoint ${ONBOARDING_ENDPOINT}; + proxy_pass ${DOLLAR}lambda_endpoint; proxy_set_header onboarding-ip ${DOLLAR}proxy_add_x_forwarded_for; proxy_set_header x-api-key ${ONBOARDING_X_API_KEY}; proxy_ssl_server_name on; diff --git a/templates/autoscaling.yaml b/templates/autoscaling.yaml index ccdac53..fa03370 100644 --- a/templates/autoscaling.yaml +++ b/templates/autoscaling.yaml @@ -16,7 +16,6 @@ Parameters: EC2InstanceType: Type: String Description: Instance Type Used for EC2 - Default: t2.micro VPCPrivateSubnetId: Type: String Description: VPC Private Subnet id diff --git a/templates/device-onboarding-main.yaml b/templates/device-onboarding-main.yaml index bb89753..2a63874 100644 --- a/templates/device-onboarding-main.yaml +++ b/templates/device-onboarding-main.yaml @@ -53,6 +53,13 @@ Parameters: Description: Email for Success Topic Subscription. Empty string or valid e-mail. Verbose ! Type: String AllowedPattern: ^$|[^\s@]+@[^\s@]+\.[^\s@]+ + EC2InstanceType: + Description: EC2 Instance type + Type: String + Default: t2.micro + AllowedValues: + - t2.micro + - t3a.micro Mappings: #======================================================= # @@ -619,6 +626,8 @@ Resources: Fn::GetAtt: - SNSResourcesStack - Outputs.SNSFailureTopicArn + EC2InstanceType: + Ref: EC2InstanceType SnsSuccessSummaryTopicARN: Fn::GetAtt: - SNSResourcesStack