Skip to content

Instantly share code, notes, and snippets.

@eelzinaty
eelzinaty / worfklow_use_github_oidc_to_push_to_ecr.yaml
Created July 31, 2022 08:56
Set up the GitHub Actions Workflows to Use GitHub OIDC to Build and Push Container Images to AWS ECR
name: Deploy 🚀
on:
push:
branches:
- main # Set a branch to deploy
jobs:
build-push-image:
runs-on: ubuntu-latest
@eelzinaty
eelzinaty / define_github_oidc_with_iam_role.yaml
Created July 31, 2022 05:58
CloudFormation Template for Creating: GitHub OIDC, IAM Role, IAM Policy to push images from GitHub Action to AWS ECR
---
AWSTemplateFormatVersion: 2010-09-09
Parameters:
GitHubOrg:
Type: String
OIDCProviderArn:
Description: Arn for the GitHub OIDC Provider.
Default: ''
Type: String
Conditions:
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "An auto-generated nested stack.",
"Metadata": {},
"Parameters": {
"AppSyncApiId": {
"Type": "String",
"Description": "The id of the AppSync API associated with this project."
},
"AppSyncApiName": {
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "An auto-generated nested stack.",
"Metadata": {},
"Parameters": {
"AppSyncApiId": {
"Type": "String",
"Description": "The id of the AppSync API associated with this project."
},
"AppSyncApiName": {
@eelzinaty
eelzinaty / Pytorch on windows using Docker.md
Last active August 27, 2018 15:08
Setup Pytorch on windows using Docker

Facebook DevC - Gaza

Pytorch on windows using Docker

Installing and Using Docker

In order to use Pytorch and applying basic deep learning examples we are going to use a pre-configured docker instance. This will help us getting a ready to use environment.

1. Install docker for windows
  • To run Docker, your machine must have a 64-bit operating system running Windows 7 or higher.
@eelzinaty
eelzinaty / README.md
Created October 28, 2017 08:19 — forked from hofmannsven/README.md
My simply Git Cheatsheet