Skip to content

Instantly share code, notes, and snippets.

View javatodev's full-sized avatar
🎯
Focusing

JavaToDev By Chinthaka Dinadasa javatodev

🎯
Focusing
View GitHub Profile
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}
required_version = ">= 1.2.0"
}
package com.javatodev.finance;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
@EnableConfigServer
@SpringBootApplication
public class InternetBankingConfigServerApplication {
public static void main(String[] args) {
service: image-processing-lambda
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs14.x
timeout: 10
stage: dev
iam:
service: file-conversion-app
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs14.x
timeout: 10
stage: dev
iam:
service: file-conversion-app
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs14.x
timeout: 10
stage: dev
iam:
"use strict";
const AWS = require('aws-sdk');
const sharp = require('sharp');
//AWS S3 Client
const s3 = new AWS.S3();
module.exports.processFile = async (event, context) => {
{
"auths": {
"registry.gitlab.com": {
"auth": "Y2hpa1I538947249hjkfdhsfUSUJJU8b32FzbG9jYWxodBZN0OjVfY13"
}
}
}
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: [ '127.0.0.1:9090' ]
- job_name: 'ennoblex_springboot_app'
services:
- docker:dind
stages:
- dependencies
- test
- build
- publish
install_dependencies:
FROM nginx:1.17.1-alpine
COPY dist/angular-keycloak-app /usr/share/nginx/html
EXPOSE 80