Giter Site home page Giter Site logo

Comments (3)

rieckpil avatar rieckpil commented on August 15, 2024

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.

andsus avatar andsus commented on August 15, 2024

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.

andsus avatar andsus commented on August 15, 2024

I found out that the ServiceApp is missing securityGroupIdsToGrantIngressFromEcs.

from stratospheric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.