Github Environments - github-pages

I use GitHub actions to deploy my code. Their documentation states that they have Environments (in beta) that can be enabled. I do not see Environments as an option in the settings of my repository.
Does anyone know how I can enable this?
**Edited to add: I am using a Private Github Repository

It's not available for a private repositories on github.com in the open beta.
In this open beta there is no need to sign up, all existing GitHub organizations and accounts can use the new capabilities in their public repositories and GitHub Enterprise Cloud organizations can use them in all repositories.
Source

Per the documentation (and now my own recent personal experience), you can get it by subscribing to GitHub Enterprise. You have to move up from that next tier above Team. Hopefully the extra cost will be worth it for everything else that comes along with.

Related

AWS Amplify: Switch existing app to new repository?

Question
Is there any way to point existing Amplify apps to new repositories? Failing that, is there a way to clone Amplify app settings (including Backend environments) from one app to another?
Background
I was a complete newcomer to AWS until several months ago, when I inherited responsibility for an existing set of AWS apps developed by another team.
In our AWS account, Amplify is configured to use GitLab repositories which were under the previous team's control. I got a copy of the code, but I don't have access to the repositories.
So I uploaded the code to a new Bitbucket repository, and now I need to point the existing apps in Amplify to the new repositories. My goal is to be able to push changes to my new repository and have Amplify detect those changes so the new build can be pushed.
3 Unsuccessful Solutions
I've tried approaching this problem from a few different angles.
1. Create a new app
I created a new app which points to the new repository, which proved to be very simple. But I didn't anticipate how difficult it would be to migrate settings (especially the Backend environment) from one app to the other. So I thought it might be simpler to point the existing apps at the new repository.
2. Reconnect Repository
I thought that configuring a new repository for an existing app would be relatively straightforward. Here's the procedure I followed.
Log into AWS Console and navigate to the Amplify service
From the list of apps, select the one I want to modify
Under "App settings", select the "General" tab
Click the "Reconnect repository" button
A dialog box popped up: "Reconnect your Git repository". It prompted me to select from a dropdown list of "Recently updated repositories", but that list was empty. There's no place to enter an address for a new repository, so this path seems to be a dead end.
3. Create a Connection
I tried to "Create a connection to Bitbucket" as described in AWS documentation here: https://docs.aws.amazon.com/dtconsole/latest/userguide/connections-create-bitbucket.html
But the "Developer Tools" console seems unrelated to Amplify. The connection was created successfully, but it doesn't appear in the "Recently updated repositories" list, and I don't know how else it can be used.
If you are okay with a CLI solution, have a look at the comment below from https://github.com/aws-amplify/amplify-hosting/issues/288#issuecomment-737192995
aws amplify update-app --app-id AMPLIFY_APP_ID --repository REPOSITORY_URL --access-token ACCESS_TOKEN
... worked for me, transferring from one github account to another
github account and repo. I know it's not quite what the OP was doing,
but thought it may be worth noting that:
The AMPLIFY_APP_ID is the last bit of the app ARN (e.g.
dXXXXXXXXXXXXX)
For github repositories, the access token is a
Personal Access Token (https://github.com/settings/tokens).
I gave it all of the repo and admin:repo_hook privileges. That had to be created from the repository owner's account, not a contributor.
This helped me to change that app to point to a different GitHub repository.
AWS CLI requires some setup though, the documentation is available here https://docs.aws.amazon.com/cli/latest/userguide/getting-started-quickstart.html
Edit: You might also have to Reconnect The Repository using the UI after changing it using the CLI

Update an existing deployment using deployment manager update API

I use Java APIs for the CRUD operations of the google cloud deployment manager API. I can create, preview, delete deployments OK.
But when I try to update an existing deployment that's in preview mode, the API returns the below error.
Deployment in preview must not have a target with UPDATE
The same inputs works OK for create and preview. So, I'm sure that the inputs are OK.
I looked up for others who have reported this issue.
Here is one such report but no solution.
Does anyone know if there's a git hub repo for google cloud deployment manager where we can report this issue?
As mentioned in the answer here, is a known issue and you can still use the workaround suggested.
I have created an issue tracker for this error message. So, you can add your comments there and follow up for upcoming updates.

Whitelist a gcp project a gcloud alpha product

I want to use the new Gcloud Product: Cloud Tasks. It's currently in Alpha. To be able to use, i have to request whitelist of my project for this product. I cannot find a way to do this. Documentations are unspecific. They post a link to google support. But unless you have Silver or Gold support, you don't get any technical help. Meaning, if you have Bronze Level Support only, you get redirected to community sites like this.
My Question: How do i whitelist Cloud Tasks for my gcp project. Whom do i send such a request and how (email, specifiq form provided by gclou?)?
FOUND: https://docs.google.com/forms/d/1g6yRocQ3wtdTArfO4JX8DoqOhYmsoTVgrlFnS0mV1bo/viewform?edit_requested=true
Sadly and by mere luck i found this link in the issue section of GCP Repository on GitHub. There Should be a central place for these kind of products with links to whitelist, release schedules, etc.

How do you sync Postman with a git repository

I'm wondering how you can sync your Postman config with a git repository.
I know you can export and import from Postman to a folder - which is OK - but I wondered if there was something more effortless.
I'm not exactly sure how you're trying to use this, but a few options would be:
First Option
to use their addon cli called newman. You can run collections from a URL or Local file with newman using
newman run http://some.url.here
Then if you make the remote url a part of a git repository it would obviously update/change with each commit/pull
Second Option
Try this with extreme caution and only if you feel comfortable with the process, also this may not be compliant with their terms of use so I don't suggest you try it without first some research
If you can find the directory in which the Postman collections are held, you could create a hard link with the command line from a git repository on your machine to the directory or specific file you need to link. Whenever you change the source file the one in the Postman config will change.
The way in which you accomplish this will depend on the system you use and version of Postman.
In addition to exporting and cloud syncing as mentioned in the other answers, there's some other options too.
Postman added a Git sync in Postman app v9 so you can manage version control with forking, merging, and pull requests.
There are also built-in integrations to sync your Postman collections with GitHub, with GitLab, and other services for version control. These integrations are for users on the paid plans.
Postman also has an API so you can GET and run the latest version of your collection, environment, or whatever using Newman or continuous integration tools or to build your own integration.
Postman is not designed for that case. They offer a cloud service which keeps you and your collaborators in sync. You can try their cloud plan for 30 days for free. Check here: https://www.getpostman.com/cloud_trial_faq
You can use Postman integrations (Home > Integrations) to link Postman to your remote git repository.
The following article explains how to integrate your gitlab repo to Postman:
https://learning.postman.com/docs/integrations/available-integrations/gitlab/
Also you can use Postman API versionning to do something similar:
https://learning.postman.com/docs/designing-and-developing-your-api/versioning-an-api/
For non-free plans, Postman now (version 9 and up) supports automatic sync of collections with a git repository on several popular git services.
(Again, it's currently only available for paid plans)
See the documentation for how to integrate Postman with GitHub, GitLab and Bitbucket.
The process is roughly:
create a dedicated repo on your git provider (e.g. my-postman-collections-repo)
create a personal access token for the provider (e.g. GitHub) with the expected scope (e.g. repo and user)
define an integration (using postman UI) for each collection you want to be kept in sync
I'm working with the GitHub integration and it works great.

Handling admin access to a Google Cloud Platform Project

I've got an email from Google; they said that I'm listed as an admin of the following project: s~stable-furnace-358.
Their goal is to make it easier for Google Cloud Platform customers to find and understand Terms of Service, Deprecation Policy and Service Level Agreements, covering all current and future Cloud Platform products and services:
The Google Cloud Platform team would like to make sure you are aware of some changes we've recently made to the Google App Engine Terms of Service (ToS) as well as how and where we communicate Deprecation Policy and Service Level Agreement (SLA) information to our users.
My question is: how do I handle this project? And where i can find the tutorials?
Am I going to be charged for participation?
Thanks.
Assuming that you did not create a project on Google Cloud Platform in the past, this means that someone has added you as an admin of their project. If you did not expect this, it may mean that someone has mistyped the email of their friend or colleague and you were added instead. They may have since fixed it, so you might not see this project in your console.
As to your questions:
How to handle this project: to see this project, visit the Developer Console and you should see that project listed there, and you can explore it from there. Consider contacting the other admins on the project to let them know of their mistake if you did not expect to participate in this project.
Finding tutorials: start on the Google Cloud homepage to get an overview of the platform, and see the developers section section for tutorials and per-product guides.
Will you be charged: some features require payment and some usage of Google Cloud Platform is free. You need to explicitly add your payment information to the project to enable being charged, so if you have not added your credit card, you will not be charged, but certain features will be unavailable.