What options are there to migrate AWS resources? - amazon-web-services

When we need to change resource in AWS like cognito, for example adding lambdas for login, changeing custom attributes ect. Is there a standard way to migrate these? For example, one we are thinking of doing this is by having a spring boot service that can we would hit with a command to do the migration lined out in java code. This does not feel like the correct way to do it so I'm looking for advice.

Related

Terraform UI for non technical CLI users?

I currently have a server build process that uses Terraform and deploys a server all from code.
I'm looking for a web UI with forms that I could either populate specific fields and or do API get commands against a VCenter or wherever the server is being built to populate the specific fields. The fields that get populated would be stored as the variables.tf file and when someone hits submit, it would run the actual Terraform command terraform apply to build the server based on the variables. My guess is the terraform binaries would have to live on there so it could run in the background.
It doesn't have to be some super fancy web page, just something that I could potentially make look cool for Director level folks.
Also, I don't want to use TF enterprise, yet. I've looked into a couple of open source projects (atlantis and terrahub) but none seem to be what I'm looking for.
I'm far from a web developer so any help would be awesome.
You can try with SLD
Stack-Lifecycle-Deployment
I think it has everything that you need
It is very intuitive, it has a web interface and a rest api to easily integrate it with the rest of the applications.

CLI/SDK to create Google-cloud oAuth client

Is it possible to create an OAuth client (https://developers.google.com/identity/protocols/OAuth2) using a script (gcloud or any library)?
Google recommended way (https://developers.google.com/identity/protocols/OAuth2WebServer#creatingcred) is to manually create from https://console.developers.google.com/apis/credentials.
I have multiple apps with different url_redirects like https://a.domain.com, https://b.domain.com https://c.domain.com, https://d.domain.com, this subdomain list is large to manage manually.
I want to automate this process for my use case. I'm not able to find any library to do this.
Update: Endpoint used by GCP console https://clientauthconfig.clients6.google.com/v1/clients and there is related permission also "clientauthconfig.clients.create" but there is no API provided for it.
You would need API client to create new API client anyway. Is it really necessary for you to create it this way? You can rather create multiple "user" credentials for your application using only that one API client.
I think you are looking for something like this, hope Java is good for you.
I've also found the following relevant information that might help you. Link
Also relevant for you. Link
Let me know.

How to integrate django with kibana

I am learning Django 2 and need integrate django with kibana, and configurate setting for send logs to kibana. If anyone knows integrations, please share with me.
I prefer keeping such integration separate from application logic, even if it is possibble.
Django writes its logs to a log-file like it normally does.
A completely separate program like logstash, reads the logfile and pushes it to elasticsearch for indexing and later showing on kibana dashboard.
Is that what you were looking for?

Connect app to custom db after deployment with boxfuse

I need to use a custom db instead of one that boxfuse creates when deploying my application to aws. I created a aws rds database, and the app won't connect to it after deploying, instead it uses a database that boxfuse creates while deploying. I use flyway for migrations.
I tried to put the url, username and password into a configuration boxfuse.yml file, but nothing happens.
I read the boxfuse documentation, but couldn't find a solution to my problem.
Is there a easy way to solve my problem?
To use your own database and prevent Boxfuse from provisioning one for you, the easiest is to recreate your app with -db.type=none (see https://cloudcaptain.sh/docs/payloads/springboot#databases)
Alternatively if you want to use both the Boxfuse-provisioned database and your own, you have to manually define a second DataSource bean with the correct connection parameters which you can then pass to Flyway or any other library requiring it.

Run private Python script on Google Cloud Platform

for the following problem I need some advice on what would be the best to do:
I want to keep track on my emails so I wrote a small Python script which does exactly that. Since it is my GMail account I am looking at and I would like to store the data in a Google spreadsheet I thought about using the Google App Engine.
This script should be triggered everytime there is a new email in my post box. What would be the smartest way to do so considering any security issues?