Category : amazon-cloudformation

I currently have a simple Lambda that’s triggered by a SQS queue and prints out the event that triggered it. It’s deployed with CFN and it’s defined as: PrintMessage: Type: AWS::Lambda::Function Properties: Handler: index.handler Runtime: python3.8 FunctionName: !Sub printMessage-${Environment} MemorySize: 1024 Role: !Sub arn:aws:iam::${AWS::AccountId}:role/service-role/printMessageRole-${Environment} Timeout: 900 Code: ZipFile: | import os import json def handler(event, ..

Read more

Here is a piece of template, I’m running in CloudFormation. So After I connect to the container (docker exec -it wordpress bash) the followings commands (8) are not executed. But in terminal it is work fine UserData: "Fn::Base64": !Sub | #!/bin/bash sudo yum update -y sudo rpm -ivh https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm sudo rpm -ivh https://repo.mysql.com//mysql57-community-release-el6-11.noarch.rpm sudo yum ..

Read more

I’m working with Docker and Kubernetes on AWS (cloudformation yaml) Yaml … resources: requests: memory: "4Gi" cpu: "0.5" limits: memory: "4Gi" cpu: "0.5" Dockerfile FROM amazonlinux:latest RUN yum -y install java-1.8.0 EXPOSE 8103 ADD myapp.jar ENTRYPOINT ["java","-XX:MinRAMPercentage=50.0","-XX:MaxRAMPercentage=80.0","-jar","myapp.jar"] Follow you can find the version of java "1.8.0_282" from the bash of my pod bash-4.2# java -XX:+PrintFlagsFinal ..

Read more

We are currently working on creating a Multi-Arm Bandit model for sign up optimization using the Build Your Own workflow that can be found here (basically substituting the model for our own): https://github.com/aws/amazon-sagemaker-examples/tree/master/advanced_functionality/scikit_bring_your_own Our project directory is set up as: Project Directory The issue is that I added some code including the dataclasses library that ..

Read more

I have the following cloudformation stack which defines an ECS Service: ApiService: Type: AWS::ECS::Service DependsOn: – LoadBalancerListener80 – LoadBalancerListener443 Properties: Cluster: !Ref EcsClusterArn DeploymentConfiguration: MaximumPercent: 200 MinimumHealthyPercent: 100 DeploymentController: Type: ECS DesiredCount: 1 HealthCheckGracePeriodSeconds: 10 LaunchType: FARGATE LoadBalancers: – ContainerName: !Join [‘-‘, [‘container’, !Ref AWS::StackName]] ContainerPort: !Ref Port TargetGroupArn: !Ref LoadBalancerTargetGroup NetworkConfiguration: AwsvpcConfiguration: AssignPublicIp: ENABLED ..

Read more

I have an image in Amazon ECR Repository called workshop I have a Dockerfile to pull that image CodeBuild should build the new image from Dockerfile Problem: pull access denied for xxxxxxxxxxx.dkr.ecr.eu-central-1.amazonaws.com/workshop, repository does not exist or may require ‘docker login’ In my buildspec file, I’ve tried to login with docker, but nothing changes. phases: ..

Read more

I have a Dockerfile in a CodeCommit Repository. I’m building a pipeline with two Stages which should: Connect to CodeCommit Source (successful) Build the image from Dockerfile in the Repository and push it to ECR (not successful) I tried the following but, it exits with exit status 127 because of the command IMAGE_URI= $REPO_URI:$IMAGE_TAG. Source: ..

Read more