Skip to content

Commit

Permalink
Merge pull request #2287 from aws-observability/rapphil-use-amazonlinux
Browse files Browse the repository at this point in the history
Use ecr images across all templates
  • Loading branch information
rapphil authored Aug 17, 2023
2 parents e407809 + d0bda7c commit 51fa79e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AWSTemplateFormatVersion: 2010-09-09
Parameters:
ClusterName:
Type: String
Description: Enter the name of your ECS cluster from which you want to collect metrics
Description: Enter the name of your preexisting EC2 based ECS cluster from which you want to collect metrics
CreateIAMRoles:
Type: String
Default: 'False'
Expand All @@ -22,7 +22,7 @@ Parameters:
command:
Type: String
Description: Using the right command to choose the config file you want to config your AOC
Default: Default
Default: '--config=/etc/ecs/otel-instance-metrics-config.yaml'
Conditions:
CreateRoles: !Equals
- !Ref CreateIAMRoles
Expand Down Expand Up @@ -59,7 +59,7 @@ Resources:
NetworkMode: bridge
ContainerDefinitions:
- Name: aws-collector
Image: 'amazon/aws-otel-collector'
Image: 'public.ecr.aws/aws-observability/aws-otel-collector:latest'
MountPoints:
- ReadOnly: true
ContainerPath: /rootfs/proc
Expand All @@ -82,7 +82,7 @@ Resources:
Environment:
- Name: USE_DEFAULT_CONFIG
Value: 'True'
command: [ !Ref command ]
Command: [ !Ref command ]
LogConfiguration:
LogDriver: awslogs
Options:
Expand Down
10 changes: 5 additions & 5 deletions deployment-template/ecs/aws-otel-ec2-sidecar-deployment-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Parameters:
command:
Type: String
Description: Using the right command to choose the config file you want to config your AOC
Default: Default
Default: '--config=/etc/ecs/ecs-default-config.yaml'
Conditions:
CreateRoles: !Equals
- !Ref CreateIAMRoles
Expand Down Expand Up @@ -112,7 +112,7 @@ Resources:
- ContainerName: aws-collector
Condition: START
- Name: aoc-statsd-emitter
Image: 'alpine/socat:latest'
Image: 'public.ecr.aws/amazonlinux/amazonlinux:latest'
Essential: false
LogConfiguration:
LogDriver: awslogs
Expand All @@ -127,11 +127,11 @@ Resources:
EntryPoint:
- "/bin/sh"
- "-c"
- "while true; do echo 'statsdTestMetric:1|c' | socat -v -t 0 - UDP:aws-collector:8125; sleep 1; done"
- "yum install -y socat; while true; do echo 'statsdTestMetric:1|c' | socat -v -t 0 - UDP:aws-collector:8125; sleep 1; done"
Links:
- aws-collector
- Name: traffic-generator-xray
Image: 'curlimages/curl:latest'
Image: 'public.ecr.aws/amazonlinux/amazonlinux:latest'
Essential: false
LogConfiguration:
LogDriver: awslogs
Expand Down Expand Up @@ -217,4 +217,4 @@ Resources:
- 'arn:aws:iam::aws:policy/CloudWatchLogsFullAccess'
- 'arn:aws:iam::aws:policy/AmazonSSMReadOnlyAccess'
- 'arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess'
RoleName: AWSOTelExecutionRole
RoleName: AWSOTelExecutionRole
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Parameters:
command:
Type: String
Description: Using the right command to choose the config file you want to config your AOC
Default: Default
Default: '--config=/etc/ecs/ecs-default-config.yaml'
Conditions:
CreateRoles: !Equals
- !Ref CreateIAMRoles
Expand Down Expand Up @@ -115,7 +115,7 @@ Resources:
- ContainerName: aws-collector
Condition: START
- Name: aoc-statsd-emitter
Image: 'alpine/socat:latest'
Image: 'public.ecr.aws/amazonlinux/amazonlinux:latest'
Essential: false
Cpu: '256'
Memory: '512'
Expand All @@ -132,7 +132,7 @@ Resources:
EntryPoint:
- "/bin/sh"
- "-c"
- "while true; do echo 'statsdTestMetric:1|c' | socat -v -t 0 - UDP:127.0.0.1:8125; sleep 1; done"
- "yum install -y socat; while true; do echo 'statsdTestMetric:1|c' | socat -v -t 0 - UDP:127.0.0.1:8125; sleep 1; done"
RequiresCompatibilities:
- FARGATE
Cpu: '1024'
Expand Down

0 comments on commit 51fa79e

Please sign in to comment.