Skip to content

Instantly share code, notes, and snippets.

View markmcgookin's full-sized avatar

Mark McGookin markmcgookin

View GitHub Profile
@markmcgookin
markmcgookin / Program.cs
Created March 17, 2017 13:58
Posting to AWS SQS with explicit credentials in .Net core
//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 / azuredeploy.json
Created March 24, 2019 20:41
Secure Storage Account Key in Azure Keyvault
{
"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": {
@markmcgookin
markmcgookin / gist:682c814dd027f4f5c65ee4bb3a590efd
Created March 24, 2019 21:06
Add azure web app identity to Azure Key Vault
{
"type": "Microsoft.KeyVault/vaults",
"name": "[variables('keyvault_name')]",
"apiVersion": "2016-10-01",
"location": "uksouth",
"tags": {},
"scale": null,
"properties": {
"sku": {
"family": "A",