Skip to content

Instantly share code, notes, and snippets.

Mo Ali AkhterAli

Block or report user

Report or block AkhterAli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:0cd6665fcc1abcc4d44b7edce47cda58
This file has been truncated, but you can view the full file.
```hcl
2018/04/30 23:21:32 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161
2018/04/30 23:21:32 [INFO] Go runtime version: go1.10.1
2018/04/30 23:21:32 [INFO] CLI args: []string{"/usr/local/Cellar/tfenv/0.6.0/versions/0.11.7/terraform", "plan"}
2018/04/30 23:21:32 [DEBUG] Attempting to open CLI config file: /Users/mo.ali/.terraformrc
2018/04/30 23:21:32 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/04/30 23:21:32 [INFO] CLI command args: []string{"plan"}
2018/04/30 23:21:32 [TRACE] Preserving existing state lineage "b277f5e0-3eb9-4aea-be17-c031f4220f01"
2018/04/30 23:21:32 [TRACE] Preserving existing state lineage "b277f5e0-3eb9-4aea-be17-c031f4220f01"
View gist:121e77ff1bc13dee9778e5c1f1170a1d
```
2018/03/22 12:37:47 [INFO] terraform: building graph: GraphTypeInput
ner-iam-role - *terraform.NodeAbstractResource
aws_iam_role.container_instance_ec2 - *terraform.NodeAbstractResource
aws_iam_role_policy_attachment.attach-coyote-messaging-policy - *terraform.NodeAbstractResource
aws_iam_role_policy_attachment.attach-secrets-policy - *terraform.NodeAbstractResource
aws_iam_role_policy_attachment.ec2_service_role - *terraform.NodeAbstractResource
aws_iam_role_policy_attachment.ecs_service_role - *terraform.NodeAbstractResource
aws_kms_key.coyote-secrets-encryption - *terraform.NodeAbstractResource
aws_launch_configuration.container_instance - *terraform.NodeAbstractResource
@AkhterAli
AkhterAli / locals.tf
Last active Feb 28, 2018
Terraform workspaces with locals
View locals.tf
locals {
vpc_type = "${terraform.workspace == "prod" ? "prod" : "dev"}"
vpc_id = "${local.vpc_type == "prod" ? var.vpc_ids["prod"] : var.vpc_ids["dev"]}"
}
View gist:62c073557a6b6685ee5f98c35a354053
#!/usr/bin/env python
import socket
grains = {}
REDIS_MASTER = 'redis_master.hostname.com'
def redis_master():
try:
REDIS_M_INFO = socket.gethostbyaddr(REDIS_MASTER)
@AkhterAli
AkhterAli / gist:8192a5a6f9af9a4ab7e2a04016d8f7df
Last active May 22, 2017
sample website and port check
View gist:8192a5a6f9af9a4ab7e2a04016d8f7df
#!/usr/bin/env python3
import requests
import socket
def get_page_code():
test = requests.get('http://www.google.com')
return test.status_code
View taf powerball
import random
import time
z = range(0, 99)
while True:
z1 = random.choice(z)
i = random.sample(range(0,99), 4)
q = i[0]
w = i[1]
e = i[2]
time.sleep(1)
You can’t perform that action at this time.