Comments (3)
Hey @andsus,
thanks for reaching out. Can you provide more information about your current setup? Did you already create the database successfully and can you see the database in the RDS overview in the AWS management console in the browser?
from stratospheric.
Yes,
I've npm run database:deploy already.
staging-todo-app-database is active on us-west-2a
These env variable are available on the ECS task definition on AWS:
SPRING_DATASOURCE_PASSWORD value ...
SPRING_DATASOURCE_URL value
jdbc:postgresql://staging-todo-app-database.c4mk6do5vazm.us-west-2.rds.amazonaws.com:5432/stagingtodoappdatabase
SPRING_DATASOURCE_USERNAME value
stagingtodoappdbUser
I've only updated the region on yml, and domain name. Other than that, it's identical deployment based of the https://github.com/stratospheric-dev/ source code.
application.yml:
cloud:
aws:
stack:
auto: false
region:
static: us-west-2
instance:
data:
enabled: false
sns:
enabled: false
server:
forward-headers-strategy: framework
spring:
jpa:
hibernate:
ddl-auto: validate
open-in-view: false
application:
name: todo-app
management:
metrics:
export:
cloudwatch:
enabled: true
namespace: stratospheric
step: 1m
tags:
environment: ${ENVIRONMENT_NAME}
error:
handling:
exception-logging: WITH_STACKTRACE
custom:
invitation-codes: DUKE, HELLO_WORLD, STRATOSPHERIC # TODO: outsource them -> e.g. env variable or database
sharing-queue: stratospheric-todo-sharing
external-url: https://app.devops.prime-video.amazon.dev/
auto-confirm-collaborations: false
confirm-email-from-address: [email protected]
environment: ${ENVIRONMENT_NAME}
application-aws.yml:
spring:
security:
oauth2:
client:
registration:
cognito:
clientId: ${COGNITO_CLIENT_ID}
clientSecret: ${COGNITO_CLIENT_SECRET}
scope: openid, profile, email
clientName: stratospheric-users-client
provider:
cognito:
issuerUri: ${COGNITO_PROVIDER_URL}
management:
metrics:
export:
cloudwatch:
enabled: false # disabled to save some $$$ on our monthly AWS bill
custom:
sharing-queue: ${TODO_SHARING_QUEUE_NAME}
web-socket-relay-endpoint: ${WEB_SOCKET_RELAY_ENDPOINT}
web-socket-relay-username: ${WEB_SOCKET_RELAY_USERNAME}
web-socket-relay-password: ${WEB_SOCKET_RELAY_PASSWORD}
web-socket-relay-use-ssl: true
provide-test-todo-controller: false
use-cognito-as-identity-provider: true
provide-dynamodb-via-aws: true
from stratospheric.
I found out that the ServiceApp is missing securityGroupIdsToGrantIngressFromEcs.
from stratospheric.
Related Issues (20)
- Error performing - 1.06 - Deploying a Service Stack with CloudFormation HOT 1
- Tracing User Actions with Amazon DyanomoDB missing initialization HOT 2
- Collaborator - user not able to login to accepts the invite. HOT 6
- Bug in chapter 10 - "npm run service:deploy" includes more than a single stack HOT 3
- Bug Chapter 10 - The deployment of the ECS Service freeze HOT 1
- Readability: The transparent version of the Stratospheric Technical Architecture Image in the README.md is not readable on a dark mode background. Use the non-transparent image instead HOT 2
- Fix the answers for two questions in quizzes 1 and 6 HOT 2
- Let students restart the course and take the quizzes as many times as they like. HOT 5
- Build Issues on Mac M3 HOT 3
- Add information on required mapping of / HOT 2
- Container based on ActiveMQ image not starting in Windows 10 HOT 1
- local-aws-infrastructure.sh not invoked HOT 1
- Inconsistancy - Book contains legacy output declaration for GithubActions HOT 1
- Possible conflict between prerequisites and instructions in the appendix HOT 2
- micrometer-registry-cloudwatch2 should be used instead of micrometer-registry-cloudwatch? HOT 1
- Extend discussion of Todo app integration with Spring Boot to mobile app context for Cognito HOT 1
- Unable to create Cognito App HOT 10
- Clarification on deploying multiple apps using same account HOT 1
- IAM role relationship diagram improvement HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stratospheric.