aws-samples / java-spring-boot-ecs-fargate-redis-caching Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT No Attribution
License: MIT No Attribution
Within the file java-spring-boot-ecs-fargate-redis-caching/cfn/applications/java-spring-boot-service.yaml
there is a resource named AutoScalingTarget
of type AWS::ApplicationAutoScaling::ScalableTarget
. At issue here are two things:
arn:aws:iam::aws:policy/aws-service-role/AWSApplicationAutoscalingECSServicePolicy
already exists.cloudwatch:DeleteAlarm
) that the existing policy used in the document does not include.I would suggest modifying the AWS::IAM::Role
resource as follows:
AutoScalingRole:
Type: AWS::IAM::Role
Properties:
RoleName: !Join ['', [ !Sub "${AWS::StackName}-${ServiceName}", AutoScalingRole]]
AssumeRolePolicyDocument:
Statement:
- Effect: Allow
Principal:
Service: application-autoscaling.amazonaws.com
Action: sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/aws-service-role/AWSApplicationAutoscalingECSServicePolicy
Could you provide some explanation on the differences in running Redis on Fargate as in this example, or using the same Spring Boot application with ElastiCache (AWS-managed Redis)? Is there any documentation on this, or articles discussing the benefits and tradeoffs?
Actually I'm a bit confused whether this example is showing running Redis in Fargate or via ElastiCache. There is a CloudFormation template for ElastiCache, but the fargate_metadata.json
seems to refer to Redis as a Fargate image.
Could you give an explanation on which approach this example uses to access Redis, and what factors should be considered when choosing between Redis on Fargate vs ElastiCache?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.