This file contains 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
const opentelemetry = require('@opentelemetry/sdk-node'); | |
const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node'); | |
const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-proto'); | |
const { BatchSpanProcessor } = require('@opentelemetry/sdk-trace-base'); | |
const { Resource } = require('@opentelemetry/resources'); | |
const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions'); | |
// Initialize OTLP trace exporter | |
const traceExporter = new OTLPTraceExporter({ | |
url: 'https://api.axiom.co/v1/traces', |
This file contains 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
import boto3 | |
import requests | |
import os | |
import json | |
from urllib.parse import unquote_plus | |
s3_client = boto3.client('s3') | |
def lambda_handler(event, context): | |
# Retrieve bucket name and file_key from the S3 event |
This file contains 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
basePath: /api/v1 | |
consumes: | |
- application/json | |
definitions: | |
APLRequestWithOptions: | |
properties: | |
apl: | |
type: string | |
datasetMap: | |
additionalProperties: |
This file contains 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
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: expressapp-controller | |
spec: | |
replicas: 2 | |
selector: | |
app: express-app | |
template: | |
metadata: |
This file contains 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: hello-world.example.com | |
labels: | |
app: hello-world | |
spec: | |
containers: | |
- name: docker-demo | |
image: tolatemitope/docker-demo |
This file contains 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: hello-world.example.com | |
labels: | |
app: hello-world | |
spec: | |
containers: | |
- name: docker-demo | |
image: tolatemitope/docker-demo |
This file contains 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
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: db-secret | |
type: Opaque | |
data: | |
password: cm9xcA== | |
username: cGFxs7dvcmQ= |
This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: helloworld-service | |
spec: | |
containers: | |
- name: docker-demo | |
image: tolatemitope/docker-demo | |
ports: | |
- containerPort: 5000 |
This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: helloworld-service | |
spec: | |
ports: | |
- port: 31001 | |
nodePort: 31001 | |
targetPort: python-port | |
protocol: TCP |
This file contains 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
Parameters: | |
NameOfService: | |
Description: "The name of the service this stack is to be used for." | |
Type: String | |
KeyName: | |
Description: "Name of existing EC2 KeyPar to enable SSH access into the server" | |
Type: AWS::EC2::KeyPair::KeyName | |
Outputs: | |
WebsiteURL: | |
Description: Website URL for EC2 Instance |
NewerOlder