Skip to content

Instantly share code, notes, and snippets.

View pagameba's full-sized avatar

Paul Spencer pagameba

View GitHub Profile
@pagameba
pagameba / machine.js
Last active September 23, 2020 15:35
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pagameba
pagameba / machine.js
Last active September 23, 2020 15:17
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pagameba
pagameba / machine.js
Created September 22, 2020 12:56
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pagameba
pagameba / machine.js
Last active September 21, 2020 19:55
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
export async function test() { }
resource "aws_ecs_service" "service" {
name = "${var.name}"
cluster = "${var.ecs_cluster_id}"
task_definition = "${aws_ecs_task_definition.task.arn}"
desired_count = "${var.desired_count}"
iam_role = "${aws_iam_role.ecs_service_role.arn}"
deployment_minimum_healthy_percent = "${var.deployment_minimum_healthy_percent}"
deployment_maximum_percent = "${var.deployment_maximum_percent}"
resource "aws_iam_role_policy" "ecs_service_policy" {
name = "ecs-service-policy-${var.name}"
role = "${aws_iam_role.ecs_service_role.id}"
policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
resource "aws_iam_role" "ecs_service_role" {
name = "ecs-service-role-${var.name}"
assume_role_policy = <<EOT
{
"Version": "2008-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",
"Principal": {
"Service": [
@pagameba
pagameba / gist:2d62874662033f59de0260e6e4eb3048
Last active October 31, 2017 18:05
openssl output local
/usr/local/opt/openssl/bin/openssl s_client -showcerts -connect vault.inside.canvaspophq.com:443 -verify_hostname vault.inside.canvaspophq.com -servername vault.inside.canvaspophq.com -CApath /usr/local/etc/openssl/certs
CONNECTED(00000003)
depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify return:1
depth=0 CN = vault.inside.canvaspophq.com
verify return:1
---
Certificate chain
openssl s_client -showcerts -connect <host>:443
CONNECTED(00000003)
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/CN=<host>
i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
-----BEGIN CERTIFICATE-----