Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active March 12, 2024 05:41
Show Gist options
  • Select an option

  • Save wilmoore/e623ff45f7a8bb8e9f21463d047bba8a to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/e623ff45f7a8bb8e9f21463d047bba8a to your computer and use it in GitHub Desktop.
Income Sources :: Jobs :: 2022 :: HP

Income Sources :: Jobs :: 2022 :: HP

Jira » OneDrive » Work » Workforce Reduction

related

HP

view logs in dev / stage / prod to monitor deployment issues

  • create folder in home directory: ~/.aws
  • create two files with no file extension in that new directory named config and credentials
mkdir ~/.aws
touch ~/.aws/{config,credentials}
~/.aws/config
[default]
region=us-west-2
output=json
[profile dev01]
region=us-west-2
output=json
[profile stage01prod01]
region=us-west-2
output=json
~/.aws/credentials
[default]
aws_access_key_id=
aws_secret_access_key=
[dev01]
aws_access_key_id=
aws_secret_access_key=
[stage01prod01]
aws_access_key_id=
aws_secret_access_key=
  • ask Eric Achelis for dev01 / dev02 (shared) and stage01 / prod01 (shared) aws access creds (id / key combo). They will be specific to you (not meant to be shared with anyone)
  • input these creds in your credentials file (dev01 / dev02 pair for the dev01 profile and stage01 / prod01 pair for the stage01prod01)
  • I think you need to add your ssh public key here in this repo (create an MR)
  • Install aws cloudwatch cli (idk how to do this on mac)
  • Connect to NALA-EAST-TUNNEL (won't work on NALA-EAST)
  • Try commands to see if it works
Example dev command:
cw tail /aws/ecs/glass/silica-dev01/mostly-harmless -b20m --profile dev01 --region us-west-2
Example prod command:
cw tail /aws/ecs/glass/silica-prod01/blackhole -b20m --profile stage01prod01 --grep "00e0db50655e"

Jira

Project Repos (OneCode)

LENS

Applications

LENS

Cloud

Azure

GraphQL

getTelemetryTenant

Fragment
fragment ttFrag on TelemetryTenant {
  tenantId
  eventHub {
    name
    primaryListenConnectionString
    secondaryListenConnectionString
    consumerGroups
  }
  storageAccount {
    name
    primaryKey
    secondaryKey
  }
  sqlDatabase {
    server
    database
    userId
    password
  }
  status
}
Query
query($tenantId: ID!) {
  getTelemetryTenant(tenantId: $tenantId) {
    ...ttFrag
  }
}
Variables
{
  "tenantId": "e8ad1ec1-b8f3-4618-86e3-a708b255b74f"
}
Response
{
  "data": {
    "getTelemetryTenant": {
      "tenantId": "e8ad1ec1-b8f3-4618-86e3-a708b255b74f",
      "eventHub": {
        "name": "e8ad1ec1-b8f3-4618-86e3-a708b255b74f",
        "primaryListenConnectionString": "Endpoint=sb://telemetry-tenants-dev-1.servicebus.windows.net/;SharedAccessKeyName=Listen;SharedAccessKey=eXtDpbyp8hHrfzfrHROInW6u5131zT1L3ZVGdCCgHVI=;EntityPath=e8ad1ec1-b8f3-4618-86e3-a708b255b74f",
        "secondaryListenConnectionString": "Endpoint=sb://telemetry-tenants-dev-1.servicebus.windows.net/;SharedAccessKeyName=Listen;SharedAccessKey=JeF4GDXb67bnnGPnaiMJgse6pK1U3TlVJIih3j1a/+I=;EntityPath=e8ad1ec1-b8f3-4618-86e3-a708b255b74f",
        "consumerGroups": [
          "$Default"
        ]
      },
      "storageAccount": {
        "name": "polyrtt42cb61a2a3aa429f7",
        "primaryKey": "r0Fq54Host7DDux5w1HI3uc6wsJpQzWKr4tW/7W4j2R9xXpM2CDZ5+btoCP6EyrVcsf4zuTFyK/6+AStW8OD7Q==",
        "secondaryKey": "0ieU9ojn/CEzSAFUV/IXjvpyXEDHYPKuEOI6g/PoQY4FM5avcCplye5CE+QIxntK/5un8HHuhSKj+ASt7RThYQ=="
      },
      "sqlDatabase": {
        "server": "lens-telemetry-dev-1-ondemand.sql.azuresynapse.net",
        "database": "e8ad1ec1_b8f3_4618_86e3_a708b255b74f",
        "userId": "e8ad1ec1_b8f3_4618_86e3_a708b255b74f",
        "password": "RDV7ujv6qzp4nqm-kaf"
      },
      "status": "ENABLED"
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment