I am trying to figure out a way to make a json template of my VPC on aws. It seems to only let me create a new stack like LAMP to get a json file. I have already built a database, webserver, subnets etc. I'm just trying to show a visual representation of it in webdesigner.
there is an open-source tool called Former2 that aims to generate a CloudFormation template from your existing AWS resources.
It has also been described in an official AWS Blog post.
After you generate the template, you can upload it in CloudFormation and view the visual representation in the CloudFormation Designer.
Related
I have a requirement to create a JSON Template for CloudFormation, from some AWS CLI code. The code includes creating a VPC, gateways, subnets, route tables and so forth
I need to convert these in a way accepted by CloudFormation and not sure the most efficient way to do that. Surely, there must be a way to automate this?
I also need to create variables that can be referenced through the template, and I don't remember the last time I did that with JSON. Is there a tutorial or reference for these stuff?
Surely, there must be a way to automate this?
No there is not automated conversion from CLI to cloudformation. However, if the resources have been already deployed, you can use former2 to generate the templates automatically.
We have two Firebase project, one for developing another production project. We use cloud functions. In one cloud functions, you need to use service-account-credentials.json. The problem is how can I make this function take data from service-account-credentials-dev.json when it proceeds to the development project, and when on production, then from service-account-credentials-prod.json?
I know about the environment, but as I understand, this feature does not allow you to download the json file for a particular project.
I found the answer to my question here. Doug Stevenson wrote "There is not. You could write your own program to read the json and convert that into a series of firebase CLI commands that get the job done"
I'm new to AWS, and I need a little help choosing the proper architecture from the seemingly endless array of services. Can anyone give me a suggestion?
Basically, I'm trying to replace an old PHP server that does the following:
Reads XML from a URL. (it's data about rental properties)
Transforms the XML into HTML, reordering and adding a bit of styling via CSS.
Serves the HTML through Apache. (My customer has a self-designed Wix site that shows these results in an iframe.) I cache the HTML for 12 hours at a time, so that I'm not hammering the XML host in #1 more than twice/day.
What would be a simple way to replicate this simple parse/cache/serve setup in AWS? The data being parsed and served is very small, btw - up to 100 MB per day.
Edit: I'm not looking to keep the old PHP code. Any mainstream language should be fine.
If you want to use PHP then you could move your service to an EC2 server with few if any changes required to your code. You could also use Elastic Beanstalk for this which manages many of the AWS services for you, including the EC2 server.
Amazon also recently released the Lightsail service, which is similar to a VPS service and would definitely be easier to get started with than EC2.
If you are OK rewriting the code and are interested in a "serverless" model which might save you lots of money over a traditional server hosting model, you could look into AWS Lambda. Lambda doesn't currently support PHP, so you would have to rewrite your code in one of the languages it does support (Python, NodeJS, Java or C#).
I want to expose data in a mysql data source as a soap web service using Talend. How can I achieve that. Please advice.
The most powerful way to do so to do so is probably to build a WSDL using Talend Open ESB Studio (Tutorial)
Alternatively, if you don't like to use another piece of software or you prefer a quick-and-dirty solution, you can achieve this with standard Talend Open Studio for Data Integration. You just need to draw a standard Talend job which redirects your mysql data output to a tBufferOutput instance. Then, you must export your job as Axis webservice, finally deploy it in your application server (Tutorial). This way, your buffer data will be automatically exposed via web service. But it has a drawback: you cannot tune the response (ie, add labels to fields or refactor the SOAP response structure at all).
I have a webapp which has user/group functions, and existing user/group data.
I want to use Activiti the process engine, however, it seems Activiti manage user/group info itself.
Should I:
Refactor my existing webapp, to reuse the user/group data from Activiti, or
Write some adapter code, to make Activiti reuse user/group data in my existing database? Maybe, another implmentation of RepositoryService, IdentityService, etc., and recompile? It seems RepositionServiceImpl is hard coded in the Activiti sources, and there isn't a setRepositionService() method in ProcessEngine.
I can't rename the existing db tables, because there are some other apps using them.
I have read the user guide, but I didn't found any information on how to integrate Activiti with existing apps.
I don't know what version you are currently using, but I used your second option successfully with version 5.5, overriding some Activiti classes:
Extend GroupManager and UserManager (from package org.activiti.engine.impl.persistence.entity), and implement the methods you need, using the required DAOs/EntityManager/whatever pointing to your database. Code here: GroupManager / UserManager.
Implement org.activiti.engine.impl.interceptor.SessionFactory.SessionFactory, for groups and users. Check out code here: ActivitiGroupManagerFactory / ActivitiUserManagerFactory.
Finally, in your activity config you have to set your new SessionFactory classes. I was using spring, so there is my activiti-config bean code: activiti-config.xml (check line 14)
Hope this helps in some way :)
You can check the Lim Chee Kin code to integrate activiti with spring security https://github.com/limcheekin/activiti-spring-security and maybe you can reuse your user/group data with spring security this way you can reuse his code.