This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class My_Custom_My_Account_Endpoint { | |
/** | |
* Custom endpoint name. | |
* | |
* @var string | |
*/ | |
public static $endpoint = 'my-custom-endpoint'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Id": "key-consolepolicy-4", | |
"Statement": [ | |
{ | |
"Sid": "Enable IAM User Permissions", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::${AWS::AccountId}:root" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Parameters: | |
BuildVersion: | |
Description: Build number | |
Type: String | |
Environment: | |
Description: Deploy Target | |
Type: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import json | |
import logging | |
import os | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
def lambda_handler(event, context): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Parameters: | |
BuildVersion: | |
Description: Build number | |
Type: String | |
Environment: | |
Description: Environment | |
Type: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: 'AWS::Serverless-2016-10-31' | |
Description: AutoScaling Group to Route 53 record update | |
#ensure you have the Tag DomainMeta set which a value of <HostedZoneId>:<Domain> on the ASG i.e. DomainMeta: Z10MWC8V7JDDU1:www.mydomain.com | |
Parameters: | |
Service: | |
Type: String | |
Default: 'asgToRoute53' | |
Description: Service name for this product |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagement; | |
import com.amazonaws.services.simplesystemsmanagement.model.GetParametersByPathRequest; | |
import com.amazonaws.services.simplesystemsmanagement.model.GetParametersByPathResult; | |
import com.amazonaws.services.simplesystemsmanagement.model.Parameter; | |
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import java.util.Set; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] | |
[INFO] --- spring-boot-maven-plugin:2.3.4.RELEASE:run (default-cli) @ sec-application --- | |
[WARNING] Fork mode disabled, devtools will be disabled | |
Fork mode disabled, devtools will be disabled | |
Spring Boot: 2.3.4.RELEASE | |
2020-10-07 15:19:26.759 INFO 27180 --- [ main] a.g.q.s.sample.SampleSpringEntry : The following profiles are active: default,testResources | |
2020-10-07 15:19:34.439 WARN 27180 --- [ main] c.a.a.p.i.BasicProfileConfigLoader : Your profile name includes a 'profile ' prefix. This is considered part of the profile name in the Java SDK, so you will need to include this prefix in your profile name when you reference this profile from your Java code. | |
2020-10-07 15:19:34.447 WARN 27180 --- [ main] i.InstanceMetadataServiceResourceFetcher : Fail to retrieve token | |
com.amazonaws.SdkClientException: Failed to connect to service endpoint: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#In this example we want to get the private ip4 address of a ELBv2 (network) | |
#Full stack located here: https://github.com/qld-gov-au/quickstart-atlassian-bitbucket/blob/d6ebe59b5ccdd204a7edc72ab6f0f89d575ac6f8/templates/quickstart-bitbucket-dc.template.yaml | |
#Network Load Balancer health checks, need internal ip to approve connectivity | |
InternalNLBIp4List: | |
DependsOn: NetworkLoadBalancerELB2 | |
Type: Custom::InternalNLBIp4ListCollector | |
Version: 1.0 | |
Properties: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to set or update a parameter in AWS Parameter Store | |
set_parameter() { | |
local PARAM_NAME=$1 | |
local PARAM_VALUE=$2 | |
local IS_SECRET=${3:-false} # Default false, set to true for secret (encrypted) parameters | |
# Determine the parameter type | |
if [ "$IS_SECRET" = true ]; then |
OlderNewer