Skip to content

Instantly share code, notes, and snippets.

$cfCreateDistData = [
'DistributionConfig' => [ // REQUIRED
'Aliases' => [
'Items' => ['dev-null.link', 'www.dev-null.link' ],
'Quantity' => 2, // REQUIRED
],
'CacheBehaviors' => [
'Items' => [
[
'AllowedMethods' => [
{
"containerDefinitions": [
{
"name": "solano-task-definition",
"image": "<ACCOUNT ID>.dkr.ecr.<REGION>.amazonaws.com/solano:init",
"essential": true,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
{
"Version" : "2008-10-17",
"Statement" : [ {
"Sid" : "allow-solano-role",
"Effect" : "Allow",
"Principal" : {
"AWS" : "arn:aws:iam::<ACCOUNT ID>:role/solano-ci-role"
},
"Action" : [ "ecr:GetDownloadUrlForLayer", "ecr:BatchGetImage", "ecr:BatchCheckLayerAvailability", "ecr:PutImage", "ecr:InitiateLayerUpload", "ecr:UploadLayerPart", "ecr:CompleteLayerUpload" ]
} ]
system:
docker: true
queue: docker
environment:
'DOCKER_APP': 'solano-ecs-repo'
'DEPLOY_AWS_ECS': 'true'
'AWS_ECS_CLUSTER': 'solano-ecs-cluster'
'AWS_ECS_SERVICE': 'solano-ecs-service'
'AWS_ECS_TASK_DEFINITION': 'solano-family'
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::AWSACCOUNTIDTMP:root"
},
"Action": "sts:AssumeRole",
"Condition": {
{
"containerDefinitions": [
{
"name": "solano-task-definition",
"image": "<ACCOUNT ID>.dkr.ecr.us-east-1.amazonaws.com/solano:init",
"essential": true,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [ "ecr:GetAuthorizationToken" ],
"Resource": [ "*" ]
}
]
}
//to run:
// # node blue-button-http.js &
//make sure that the NPM modules below are installed
var http = require('http');
var qs = require('querystring');
var bb = require('blue-button');
//Lets define a port we want to listen to
const PORT=8000;
var conn_count = 0;
MSH|^~\&|SOURCEEHR|WA|MIRTHDST|WA|201611111111||SIU^S12|MSGID10001|P|2.3|
SCH|30000001|||||CHECKUP|ROUTINE|NORMAL|20|MIN|201611111400|||||JOHN||||(206)555-5309|||||ARRIVED
PD1||||123456^DOCTOR^BOB^T^^DR|
PID|1|100001^^^1^MRN1|900001||DOE^JOHN^^^^||19601111|M||WH|111 THAT PL^^HERE^WA^98020^USA||(206)555-5309|||M|NON|999999999|
PV1|1|O|||||123456^DOCTOR^BOB^T^^DR|^|||||||||||||||||||||||||||||||||||||||||||||
AIL|||123456^DOCTOR^BOB^T^^DR|||201611110000|||20|MIN
AIG|||7777|||||201611110000|||20|MIN
NTE|1||ANNUAL HLCK^^|
AIP|1||PBN^LISAPORTER|50|||||||||
MSH|^~\&|SOURCEEHR|WA|MIRTHDST|WA|201611111111||ADT^A01|MSGID10001|P|2.3|
EVN|A01|201611111111||
PID|1|100001^^^1^MRN1|900001||DOE^JOHN^^^^||19601111|M||WH|111 THAT PL^^HERE^WA^98020^USA||(206)555-5309|||M|NON|999999999|
NK1|1|DOE^JANE^|WIFE||(206)555-5555||||NK^NEXT OF KIN
PV1|1|O|1001^2002^01||||123456^DOCTOR^BOB^T^^DR|||||||ADM|A0|