Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark McGookin markmcgookin

View GitHub Profile
@markmcgookin
markmcgookin / Program.cs
Created Mar 17, 2017
Posting to AWS SQS with explicit credentials in .Net core
View Program.cs
//the url for our queue
var queueUrl = "https://sqs.eu-west-1.amazonaws.com/[USERID]/[QUEUENAME]";
Console.WriteLine("Queue Test Starting!");
Console.WriteLine("Creating Client and request");
//Create some Credentials with our IAM user
var awsCreds = new BasicAWSCredentials("[ACCESSKEY]", "[SECRETKEY]");
@markmcgookin
markmcgookin / gist:682c814dd027f4f5c65ee4bb3a590efd
Created Mar 24, 2019
Add azure web app identity to Azure Key Vault
View gist:682c814dd027f4f5c65ee4bb3a590efd
{
"type": "Microsoft.KeyVault/vaults",
"name": "[variables('keyvault_name')]",
"apiVersion": "2016-10-01",
"location": "uksouth",
"tags": {},
"scale": null,
"properties": {
"sku": {
"family": "A",
@markmcgookin
markmcgookin / azuredeploy.json
Created Mar 24, 2019
Secure Storage Account Key in Azure Keyvault
View azuredeploy.json
{
"type": "Microsoft.KeyVault/vaults/secrets",
"name": "[concat(variables('keyvault_name'), '/', 'StorageAccountKey')]",
"apiVersion": "2016-10-01",
"location": "uksouth",
"scale": null,
"properties": {
"value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2016-01-01').keys[0].value]",
"contentType": "string",
"attributes": {