SlideShare a Scribd company logo
1 of 32
Download to read offline
JHipster
on AWS
A tale of shiny things
Gerard Gigliotti
● Started life as an opinionated code generator, for generating Spring
Boot + Angular Web Applications (now React as well):
● Moved into an opinionated development platform to generate,
develop and deploy Microservices:
What is JHipster?
+ =
All things client side
All things server side
All things deployment side
Current JHipster MicroService View of the World
Future JHipster MicroService View of the World
Enter… AWS
Existing AWS Generator
● Based on Elastic Beanstalk, using the Tomcat as the deployment
option. Everything else had moved to Docker.
● Used the AWS API to deploy, without extensive error handling. If it
fails halfway through…
● Easy to make mistakes with input. Limited validation before execute.
● No clear understanding of what it actually does to your account.
● Not really supported by anyone, and hadn’t been updated in years.
Shiny New Toys
● AWS Announced Fargate support in late November 2017.
● What is Fargate?
○ Allows you to run containers without having to manage servers.
○ At the time was only available in us-west-1, with all the other cool kids.
○ On-demand pricing model *
Elastic Container Service 101
Container Definition
Task Definition
Service
Cluster
Generator
Implementation
Our Goal
● Docker based.
● Leverage AWS Native where possible.
● Turnkey deployment. Similar to the Heroku Generator.
● Avoid analysis paralysis with questions asked.
● Pre-populate with data based on a user’s AWS account. VPC IDs,
Subnets etc…
● Monolith option to start with.
● CloudFormation.
High Level Design
Generator Flow Chart
Start, pre-populate data
from Account
Deployment
Questions
More
Questions
?
Retrieve More Data
Inject Spring Cloud
Templates
Deploy?
Compile + Package
Project
Run CF Part #1
Upload Docker
Image to ECR
Generate CF
Run CF Part #2
End, Bezos Profit
Yes
No
Yes
No
Issues
Opportunities
Yeoman
● JHipster was originally a
yeoman-generator, but is now a
standalone CLI, which uses yeoman
underneath.
● Wanted to align with the existing
codebase as much as possible.
● Getting our head around the Yeoman
context took a while.
● this.async used heavily as some kind of
punishment.
● Understanding the Yeoman runtime
context is important.
CloudFormation
● Spinning up the stack is slow (mainly due
to Aurora). Small Aurora instance on
Sunday night took ~8 minutes to spin up.
● Went with a nested-stack approach,
allowing you to deploy multiple
applications at the same time.
● Split the script into two phases, using
Conditions to toggle the service on and
off.
● CloudFormation files defined in EJS.
Fargate Costs $$$$?
● Current pricing model primarily targeted at infrequent (ie, not
continuously running) processes.
● Price per vCPU is $0.00001406 per second ($0.0506 per hour) and
per GB memory is $0.00000353 per second ($0.0127 per hour).
● Assuming that 1 vCPU is the same between Fargate and EC2...
● Fargate Pricing: 1 vCPU + 2GB running all month
○ ($0.0506 * 24 * 31) + ($0.0127 * 24 * 31) = 37.6464 + 9.4488 = $47.0952 a
month
● EC2 Pricing
○ ($0.023 * 24 * 31) = $17.112 a month.
● However if you’re allergic to any kind of system management, that
might look like a bargain.
Secure Access to Aurora Part 1
● Password for database access. Can use IAM with Aurora with MySQL
compatibility, but doesn't work with Aurora with Postgres.
● General things you shouldn’t do:
○ Bake them into the CloudFormation file.
○ Expose via Environment Variables in the Task Definition.
● Decided on AWS Systems Manager (SSM) SecureString to store the
password. Unfortunately not directly supported by CloudFormation.
● Our Solution: Asks for the database password once, stores it in SSM.
When needed for subsequent executions of the CloudFormation
script, it reads it back in.
Secure Access to Aurora Part 2
● How to get the password into Spring?
● Spring Cloud:
○ Has an AWS Spring Cloud Connector, but doesn’t support SSM.
○ However, does introduce a BootStrap Application Context.
● Wires in a new PropertySourceLocator object which retrieves any
properties set via AWSSimpleSystemsManagement. Makes the
properties available via existing Spring PropertySource mechanism.
● From an IAM perspective, the task has a role which allows access to
the SSM Secure String.
Fargate != Lambda
● Although you don’t have to worry about servers, AWS does, and you
can see it.
● Startup time for a JHipster task approximately 40 seconds. Seems to
take longer if the cluster is new.
Can’t Get Host Address
This doesn’t work by default in a container running in Fargate.
Random Tidbits
● Can’t delete an Elastic Container Registry if there are images in it.
● Initially we were going to deploy a VPC as part of the generator.
Decided against that due to complexity. Supports default VPC (for
the lazy), and a basic two-tier model.
● Even with a CLI, it’s still good to show loading behaviour.
Demo
Blurry Screenshots
Generator Questions
Logging Example
Roadmap
Things to come...
● Ability to delete the stack from the cli.
● Ability to deploy to EC2 Instances & Fargate.
● Microservice support; waiting on EKS.
○ Existing Kubernetes generator is heavily used, but not as turn-key as I
would like.
● HTTPS support would be great...
All the Links
Main Site: http://www.jhipster.tech/
Source Code: https://github.com/jhipster/generator-jhipster
AWS Guide: https://www.jhipster.tech/aws/
CI/CD Talk:
https://gerard.gigliotti.com.au/putting-the-fun-into-function
ing-ci-cd-ae7adb19ea17
Fin
PARIS
BORDEAUX
NANTES
WASHINGTON, DC
NEW-YORK
RICHMOND, VA
MARRAKECH
MELBOURNE
contact@ippon.fr
www.ippon.fr
www.ippon-hosting.com
www.ippon-digital.fr
@ippontech
01 46 12 48 48

More Related Content

What's hot

[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 

What's hot (20)

Quarkus tips, tricks, and techniques
Quarkus tips, tricks, and techniquesQuarkus tips, tricks, and techniques
Quarkus tips, tricks, and techniques
 
Why Microservice
Why Microservice Why Microservice
Why Microservice
 
Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
 
Jenkins tutorial
Jenkins tutorialJenkins tutorial
Jenkins tutorial
 
Containers: The What, Why, and How
Containers: The What, Why, and HowContainers: The What, Why, and How
Containers: The What, Why, and How
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
 
Microservice Architecture
Microservice ArchitectureMicroservice Architecture
Microservice Architecture
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 
Clean architecture with asp.net core
Clean architecture with asp.net coreClean architecture with asp.net core
Clean architecture with asp.net core
 
Introduction to microservices
Introduction to microservicesIntroduction to microservices
Introduction to microservices
 
4. 대용량 아키텍쳐 설계 패턴
4. 대용량 아키텍쳐 설계 패턴4. 대용량 아키텍쳐 설계 패턴
4. 대용량 아키텍쳐 설계 패턴
 
Red Hat Insights
Red Hat InsightsRed Hat Insights
Red Hat Insights
 
React native
React nativeReact native
React native
 
Microservices Design Patterns
Microservices Design PatternsMicroservices Design Patterns
Microservices Design Patterns
 
Architecture: Microservices
Architecture: MicroservicesArchitecture: Microservices
Architecture: Microservices
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version Control
 
High Availability Content Caching with NGINX
High Availability Content Caching with NGINXHigh Availability Content Caching with NGINX
High Availability Content Caching with NGINX
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
Microservices Architectures: Become a Unicorn like Netflix, Twitter and HailoMicroservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
Microservices Architectures: Become a Unicorn like Netflix, Twitter and Hailo
 
Api Gateway
Api GatewayApi Gateway
Api Gateway
 

Similar to JHipster on AWS

Introduction to amazon web services for developers
Introduction to amazon web services for developersIntroduction to amazon web services for developers
Introduction to amazon web services for developers
Ciklum Ukraine
 
OSOM Operations in the Cloud
OSOM Operations in the CloudOSOM Operations in the Cloud
OSOM Operations in the Cloud
mstuparu
 

Similar to JHipster on AWS (20)

AWS Intro for Knight News Fellows
AWS Intro for Knight News FellowsAWS Intro for Knight News Fellows
AWS Intro for Knight News Fellows
 
Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...
Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...
Como creamos QuestDB Cloud, un SaaS basado en Kubernetes alrededor de QuestDB...
 
Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...
Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...
Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...
 
Writing and deploying serverless python applications
Writing and deploying serverless python applicationsWriting and deploying serverless python applications
Writing and deploying serverless python applications
 
How Yelp uses Mesos to Power its SOA Infrastructure
How Yelp uses Mesos to Power its SOA InfrastructureHow Yelp uses Mesos to Power its SOA Infrastructure
How Yelp uses Mesos to Power its SOA Infrastructure
 
Netflix oss season 1 episode 3
Netflix oss season 1 episode 3 Netflix oss season 1 episode 3
Netflix oss season 1 episode 3
 
Big data Argentina meetup 2020-09: Intro to presto on docker
Big data Argentina meetup 2020-09: Intro to presto on dockerBig data Argentina meetup 2020-09: Intro to presto on docker
Big data Argentina meetup 2020-09: Intro to presto on docker
 
Intro to creating kubernetes operators
Intro to creating kubernetes operators Intro to creating kubernetes operators
Intro to creating kubernetes operators
 
Netflix Open Source Meetup Season 4 Episode 2
Netflix Open Source Meetup Season 4 Episode 2Netflix Open Source Meetup Season 4 Episode 2
Netflix Open Source Meetup Season 4 Episode 2
 
Spark on Kubernetes
Spark on KubernetesSpark on Kubernetes
Spark on Kubernetes
 
Introduction to amazon web services for developers
Introduction to amazon web services for developersIntroduction to amazon web services for developers
Introduction to amazon web services for developers
 
State of serverless
State of serverlessState of serverless
State of serverless
 
GCP overview
GCP overviewGCP overview
GCP overview
 
AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2) AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2)
 
Combining ReST and Context for Killer iPhone Apps
Combining ReST and Context for Killer iPhone AppsCombining ReST and Context for Killer iPhone Apps
Combining ReST and Context for Killer iPhone Apps
 
NetflixOSS Meetup season 3 episode 1
NetflixOSS Meetup season 3 episode 1NetflixOSS Meetup season 3 episode 1
NetflixOSS Meetup season 3 episode 1
 
Introduction to AWS Big Data
Introduction to AWS Big Data Introduction to AWS Big Data
Introduction to AWS Big Data
 
Future of Cloud Computing with Containers
Future of Cloud Computing with ContainersFuture of Cloud Computing with Containers
Future of Cloud Computing with Containers
 
Building Distributed Systems from Scratch - Part 1
Building Distributed Systems from Scratch - Part 1Building Distributed Systems from Scratch - Part 1
Building Distributed Systems from Scratch - Part 1
 
OSOM Operations in the Cloud
OSOM Operations in the CloudOSOM Operations in the Cloud
OSOM Operations in the Cloud
 

Recently uploaded

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 

Recently uploaded (20)

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 

JHipster on AWS

  • 1. JHipster on AWS A tale of shiny things Gerard Gigliotti
  • 2. ● Started life as an opinionated code generator, for generating Spring Boot + Angular Web Applications (now React as well): ● Moved into an opinionated development platform to generate, develop and deploy Microservices: What is JHipster? + =
  • 6. Current JHipster MicroService View of the World
  • 7. Future JHipster MicroService View of the World
  • 9. Existing AWS Generator ● Based on Elastic Beanstalk, using the Tomcat as the deployment option. Everything else had moved to Docker. ● Used the AWS API to deploy, without extensive error handling. If it fails halfway through… ● Easy to make mistakes with input. Limited validation before execute. ● No clear understanding of what it actually does to your account. ● Not really supported by anyone, and hadn’t been updated in years.
  • 10. Shiny New Toys ● AWS Announced Fargate support in late November 2017. ● What is Fargate? ○ Allows you to run containers without having to manage servers. ○ At the time was only available in us-west-1, with all the other cool kids. ○ On-demand pricing model *
  • 11. Elastic Container Service 101 Container Definition Task Definition Service Cluster
  • 13. Our Goal ● Docker based. ● Leverage AWS Native where possible. ● Turnkey deployment. Similar to the Heroku Generator. ● Avoid analysis paralysis with questions asked. ● Pre-populate with data based on a user’s AWS account. VPC IDs, Subnets etc… ● Monolith option to start with. ● CloudFormation.
  • 15. Generator Flow Chart Start, pre-populate data from Account Deployment Questions More Questions ? Retrieve More Data Inject Spring Cloud Templates Deploy? Compile + Package Project Run CF Part #1 Upload Docker Image to ECR Generate CF Run CF Part #2 End, Bezos Profit Yes No Yes No
  • 17. Yeoman ● JHipster was originally a yeoman-generator, but is now a standalone CLI, which uses yeoman underneath. ● Wanted to align with the existing codebase as much as possible. ● Getting our head around the Yeoman context took a while. ● this.async used heavily as some kind of punishment. ● Understanding the Yeoman runtime context is important.
  • 18. CloudFormation ● Spinning up the stack is slow (mainly due to Aurora). Small Aurora instance on Sunday night took ~8 minutes to spin up. ● Went with a nested-stack approach, allowing you to deploy multiple applications at the same time. ● Split the script into two phases, using Conditions to toggle the service on and off. ● CloudFormation files defined in EJS.
  • 19. Fargate Costs $$$$? ● Current pricing model primarily targeted at infrequent (ie, not continuously running) processes. ● Price per vCPU is $0.00001406 per second ($0.0506 per hour) and per GB memory is $0.00000353 per second ($0.0127 per hour). ● Assuming that 1 vCPU is the same between Fargate and EC2... ● Fargate Pricing: 1 vCPU + 2GB running all month ○ ($0.0506 * 24 * 31) + ($0.0127 * 24 * 31) = 37.6464 + 9.4488 = $47.0952 a month ● EC2 Pricing ○ ($0.023 * 24 * 31) = $17.112 a month. ● However if you’re allergic to any kind of system management, that might look like a bargain.
  • 20. Secure Access to Aurora Part 1 ● Password for database access. Can use IAM with Aurora with MySQL compatibility, but doesn't work with Aurora with Postgres. ● General things you shouldn’t do: ○ Bake them into the CloudFormation file. ○ Expose via Environment Variables in the Task Definition. ● Decided on AWS Systems Manager (SSM) SecureString to store the password. Unfortunately not directly supported by CloudFormation. ● Our Solution: Asks for the database password once, stores it in SSM. When needed for subsequent executions of the CloudFormation script, it reads it back in.
  • 21. Secure Access to Aurora Part 2 ● How to get the password into Spring? ● Spring Cloud: ○ Has an AWS Spring Cloud Connector, but doesn’t support SSM. ○ However, does introduce a BootStrap Application Context. ● Wires in a new PropertySourceLocator object which retrieves any properties set via AWSSimpleSystemsManagement. Makes the properties available via existing Spring PropertySource mechanism. ● From an IAM perspective, the task has a role which allows access to the SSM Secure String.
  • 22. Fargate != Lambda ● Although you don’t have to worry about servers, AWS does, and you can see it. ● Startup time for a JHipster task approximately 40 seconds. Seems to take longer if the cluster is new.
  • 23. Can’t Get Host Address This doesn’t work by default in a container running in Fargate.
  • 24. Random Tidbits ● Can’t delete an Elastic Container Registry if there are images in it. ● Initially we were going to deploy a VPC as part of the generator. Decided against that due to complexity. Supports default VPC (for the lazy), and a basic two-tier model. ● Even with a CLI, it’s still good to show loading behaviour.
  • 29. Things to come... ● Ability to delete the stack from the cli. ● Ability to deploy to EC2 Instances & Fargate. ● Microservice support; waiting on EKS. ○ Existing Kubernetes generator is heavily used, but not as turn-key as I would like. ● HTTPS support would be great...
  • 30. All the Links Main Site: http://www.jhipster.tech/ Source Code: https://github.com/jhipster/generator-jhipster AWS Guide: https://www.jhipster.tech/aws/ CI/CD Talk: https://gerard.gigliotti.com.au/putting-the-fun-into-function ing-ci-cd-ae7adb19ea17
  • 31. Fin