This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
var AWS = require('aws-sdk') | |
var ssm = new AWS.SSM({region: 'us-east-1'}) | |
const getParameter = async (params) => { | |
try { | |
let resp = await ssm.getParameter(params).promise() | |
console.log(resp.Parameter.Value) | |
return resp.Parameter.Value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
var AWS = require('aws-sdk') | |
var ssm = new AWS.SSM({region: 'us-east-1'}) | |
const getParameter = async (params) => { | |
try { | |
const resp = await ssm.getParameter(params).promise() | |
console.log(resp.Parameter.Value) | |
return resp.Parameter.Value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This simple file presents how to provision a HTTPS Custom Domain Single Page App (like React) | |
# using S3 Private Bucket (not configured as Website) and CloudFront. Following best practice, | |
# users can only access S3 content # via Custom Domain Name or CloudFront endpoint. Not directly to S3 bucket. | |
provider "aws" { | |
region = "ap-southeast-1" | |
} | |
## Data | |
data "aws_region" "current" {} |