Skip to content

Instantly share code, notes, and snippets.

@ferzerkerx
ferzerkerx / gist:fd8a9df3fd21ee20ea6770843667495b
Last active June 14, 2023 15:29
pipeline-with-dependencies
gradle_test:
runs-on: self-hosted
container: public.ecr.aws/docker/library/gradle:7.5.1-jdk17
env:
HOSTNAME_EXTERNAL: localstack
LOCALSTACK_HOST: localstack
DEFAULT_REGION: eu-central-1
CLUSTER_NAME: LOCAL_CLUSTER
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/postgres
DYNAMODB_ENDPOINT: http://localstack:4566
@ferzerkerx
ferzerkerx / dynamodb-access.tf
Created June 10, 2021 09:18
dynamodb-access
# DynamoDB
data "aws_iam_policy_document" "tables" {
statement {
actions = ["dynamodb:*"]
resources = ["${var.table_arns}"]
}
}
resource "aws_iam_policy" "tables_policy" {
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.aws.messaging.config.annotation.NotificationMessage;
import org.springframework.cloud.aws.messaging.listener.annotation.SqsListener;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Component
$$('a[itemprop="name codeRepository"]')
.map(i=>`git clone git@github.com:user-organization/${i.text.trim()}`)
.join(';')