Skip to content

Commit

Permalink
Synthetics Update: AWS Synthetics now supports Environment Variables …
Browse files Browse the repository at this point in the history
…to assign runtime parameters in the canary scripts.
  • Loading branch information
AWS committed Nov 16, 2020
1 parent 6554265 commit a2c9a7c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changes/next-release/feature-Synthetics-5b2871d.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "feature",
"category": "Synthetics",
"contributor": "",
"description": "AWS Synthetics now supports Environment Variables to assign runtime parameters in the canary scripts."
}
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
},
"RuntimeVersion":{
"shape":"String",
"documentation":"<p>Specifies the runtime version to use for the canary. Currently, the only valid values are <code>syn-nodejs-2.0</code>, <code>syn-nodejs-2.0-beta</code>, and <code>syn-1.0</code>. For more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>"
"documentation":"<p>Specifies the runtime version to use for the canary. For more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>"
},
"VpcConfig":{"shape":"VpcConfigOutput"},
"Tags":{
Expand Down Expand Up @@ -386,6 +386,10 @@
"ActiveTracing":{
"shape":"NullableBoolean",
"documentation":"<p>Specifies whether this canary is to use active AWS X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html\"> Canaries and X-Ray tracing</a>.</p> <p>You can enable active tracing only for canaries that use version <code>syn-nodejs-2.0</code> or later for their canary runtime.</p>"
},
"EnvironmentVariables":{
"shape":"EnvironmentVariablesMap",
"documentation":"<p>Specifies the keys and values to use for any environment variables used in the canary script. Use the following format:</p> <p>{ \"key1\" : \"value1\", \"key2\" : \"value2\", ...}</p> <p>Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime\"> Runtime environment variables</a>.</p>"
}
},
"documentation":"<p>A structure that contains input information for a canary run.</p>"
Expand Down Expand Up @@ -600,7 +604,7 @@
},
"RuntimeVersion":{
"shape":"String",
"documentation":"<p>Specifies the runtime version to use for the canary. Currently, the only valid values are <code>syn-nodejs-2.0</code>, <code>syn-nodejs-2.0-beta</code>, and <code>syn-1.0</code>. For more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>"
"documentation":"<p>Specifies the runtime version to use for the canary. For a list of valid runtime versions and more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>"
},
"VpcConfig":{
"shape":"VpcConfigInput",
Expand Down Expand Up @@ -716,6 +720,16 @@
}
}
},
"EnvironmentVariableName":{
"type":"string",
"pattern":"[a-zA-Z]([a-zA-Z0-9_])+"
},
"EnvironmentVariableValue":{"type":"string"},
"EnvironmentVariablesMap":{
"type":"map",
"key":{"shape":"EnvironmentVariableName"},
"value":{"shape":"EnvironmentVariableValue"}
},
"ErrorMessage":{"type":"string"},
"FunctionArn":{
"type":"string",
Expand Down Expand Up @@ -858,7 +872,7 @@
"members":{
"VersionName":{
"shape":"String",
"documentation":"<p>The name of the runtime version. Currently, the only valid values are <code>syn-nodejs-2.0</code>, <code>syn-nodejs-2.0-beta</code>, and <code>syn-1.0</code>.</p>"
"documentation":"<p>The name of the runtime version. For a list of valid runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>"
},
"Description":{
"shape":"String",
Expand Down Expand Up @@ -1035,7 +1049,7 @@
},
"RuntimeVersion":{
"shape":"String",
"documentation":"<p>Specifies the runtime version to use for the canary. Currently, the only valid values are <code>syn-nodejs-2.0</code>, <code>syn-nodejs-2.0-beta</code>, and <code>syn-1.0</code>. For more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>"
"documentation":"<p>Specifies the runtime version to use for the canary. For a list of valid runtime versions and for more information about runtime versions, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html\"> Canary Runtime Versions</a>.</p>"
},
"Schedule":{
"shape":"CanaryScheduleInput",
Expand Down

0 comments on commit a2c9a7c

Please sign in to comment.