What are the different Terraform google_<name>_iam? [closed] - google-cloud-functions

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 months ago.
Improve this question
This is my first time using Google Cloud and Terraform. There is something I don't understand and can't find good documentation or explanation about it.
I am trying to add a policy to a service account and noticed in the Terraform Google document that there are pattern of functions in Terraform Google that is named google_<name>_iam. You can search _iam and you will see the pattern. Also for every google_<name>_iam function there are three functions google_<name>_iam_policy, google_<name>_iam_binding, and google_<name>_iam_member.
For example, google_project_iam , cloudfunctions_function_iam and storage_bucket_iam, they all follow this pattern.
Why do we need these functions for each services and when is the right time to use them? Can I use these functions to attach a role (i.e roles/cloudfunctions.invoker) to a service account?

The documentation is pretty clear
google__iam_policy: Authoritative. Sets the IAM policy for the and replaces any existing policy already attached.
i.e. override all the existing policies for all the roles and all the members. The most dangerous, but allow to clean and restore proper config.
google__iam_binding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the table are preserved.
i.e. override all the members for a given role. Useful to have a full and predetermined list of members (for admin role for instance)
google__iam_member: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role of the are preserved.
i.e. as you do usually on your project/service: add a member/role binding without changing the existing config.

Related

Azure: SKU property value for Automation Account, where are centralized Template Docs? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm trying to deploy a Resource Group that includes an Azure Automation Account. One of the parameters in the parameters.json file is called automationAccounts_DSCAutomationAccount_sku. Putting an arbitrary string as its value results in an InvalidTemplate error:
The provided value for the template parameter 'automationAccounts_DSCAutomationAccount_sku' at line '7' and
7' is not valid.'.
Specific Question: What would constitute a valid value? In powershell there is no sku property of the AutomationAccount object. And when creating a new account in the Portal, there is never an option to select one of many different kinds of Automation Accounts, there is only one kind. So what does Azure need an SKU field for anyway?
General Question: In Azure Templates (and parameter files) how can I know what a certain field expects, and what fields are required for a certain resource? Is there any centralized doc that has all of these requirements?
It seems that there isn't, and if that's the case, that makes authoring templates nearly impossible, with the only viable option for producing templates being configuring a resource group in the Azure Portal, and then downloading the template JSON file that it generates.
Indeed you raise a valid point, I have not seen a centralized place to look that up, but, there's a ARM schema which is the closest to what you ask that you can get, in my opinion. But that place is a pain to navigate\look through.
Also, there's the https://resources.azure.com resource, which is really helpful, and there's the Automation script option on the portal, that would effectively export out the json template for you. Having said that, here's the free SKU example:
"sku": {
"name": "Free",
"family": null,
"capacity": null
},
also, this seems to be the relevant schema for Automation
https://raw.githubusercontent.com/Azure/azure-resource-manager-schemas/master/schemas/2015-10-31/Microsoft.Automation.json

Open source platform/software to develop app backend [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
We are going to develop some mobile app for one of our clients, and we are defining the technical solution for the backend server.
Basically, we need to implement a backend providing REST apis for the apps. The apps will need features such as user authentication, handling of user profiles and user contents. The backend should also expose a web administration interface and allow to manipulate some of the app contents in a CMS-like way.
My client specifically wants to avoid baas solution (like Parse), and I am trying to find some open source software able to provide some of the features out of the box, to avoid writing everything from scratch, and develop the other parts. We can use cloud services such as AWS for hosting the backend.
What existing platform/software would you advise?
Here a a few options to look into:
DreamFactory: http://www.dreamfactory.com/
Loopback: http://loopback.io/
Apache Usergrid: http://usergrid.incubator.apache.org/
BaasBox: http://www.baasbox.com/
Not sure if this answer your question. Did you come across other options?
I am currently using apache usergrid for one of my projects and consider it powerful on following areas;
Authentication & Authorization (also social login)
Activity creation and activity feeds
Asset storage (local or aws s3)
Dynamic collection creation
Search on collections and support custom query language (via elastic search)
But it doesn't support push notifications. If you need that out of the box, you may have a look at BaasBox. It seems a good alternative to usergrid.
I didn't find documentation adequate for usergrid (i mean for internals not api usage), so you have to dig source code to find out answers.
If you are developing social application (user activities, feeds, comments, likes) it is hard to update counters in a document (e.g. updating comments and likes count). It is not natively supported. You may sync increments on the same document using a queue like kafka.

College/University data API [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm trying to build an application that allows users to look up a specific university and see data about it (admission rate, SAT scores, size, etc.). However, I can't find an API/database that I can use as it doesn't seem like they have a REST API that's accessible via a GET URL request.I saw so many apps having all this information, but I can't find any relevant API.
Does anyone know a way I could access this information? Thanks!
Just figured it out. Turns out you can use the IPEDS database to get this info, but it doesn't offer an API to do it. Go to IPEDS and create a group of institutions you want (ex. all 4-year, degree granting universities in the United States), select what variables you want (address, admission rate, etc.), then finally export the data in CSV. If you want the data in a less terrible format, just convert it to JSON or whatever you'd like.
An extensive collection of data in json, csv, pdf, and other formats is at:
http://www.ed.gov/developer
One funny thing: if you take one of their download links:
https://inventory.data.gov/dataset/032e19b4-5a90-41dc-83ff-6e4cd234f565/resource/38625c3d-5388-4c16-a30f-d105432553a4/download/userssharedsdfpostscndryunivsrvy2010dirinfo.csv
and you change the .csv to .json, you still get a csv file.

Is there any open source user-guide type creation software available? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there any open source user-guide type creation software available? Or is it best to use wiki type systems? We want to be able to create user guides on the fly through a web front end and accessible on the net. Or is this best achieved using Wikis?
Thanks
I use MediaWiki for a user-guide and help page at my company, and it works really well!
Create custom namespaces for different parts, and if you want to have access controls you can create different groups.
The extensions are great, because you can always find one to do anything you want (ie. print to PDF for an offline copy)
I'd strongly recommend using Wikis. As long as your chosen one's markup covers your needs, it's ideal for user guides.
This post is not 100% on topic - it's about creating user manual for the workplace (as opposed to the software) - but many ideas are still worth reading.
This is a good guide for using Wiki in knowledge sharing.
http://www.futurechanges.org/patterns/
We have used Wikispaces.com to create manuals and guides for several projects. Especially if you are a non-profit with a K-12 educational mission, then current setup for a Wikispace includes Private Projects so you can evolve documentation and make it public when it's appropriate to do so.

Need a web host that allows MySQL triggers on shared accounts [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Does anyone have experience with or know of a web host that allows the use of MySQL triggers on shared (read "cheap") accounts?
I currently use Surpass Hosting and they told me this was a feature they won't support for security reasons.
Update
I've checked with bluehost, Host Monster, and DreamHost and none of them support triggers.
This is all due to triggers requiring the SUPER privilege. MySQL 5.1.6 will implement a TRIGGER privilege, which should alleviate the issue.
The only host I found so far to support mysql triggers on shared packages is placehost
I think most hosts that have mysql 5 or later will support triggers, but i have actually not used them with mysql myself.
Ive use Dreamhost for many years and alwasy been happy with them (http://dreamhost.com or http://www.dreamhost.com/r.cgi?redpirk to give me credits ;)
if you send me short code snippet, i can test.
i've used nativespace.co.uk (affiliate link). very helpful service and setup triggers for me even though there wasn't an option to do it on the control panel.
Josh
I can confirm that namesco did not allow me to set up triggers on their shared hosting package.