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
dynamodb: | |
token: Token_Dev |
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
@Getter | |
@Setter | |
@AllArgsConstructor | |
@NoArgsConstructor | |
@Builder | |
@DynamoDBTable(tableName = "") | |
@DynamodbTableEnv("dynamodb.token") //it will search for this property in application.yml | |
public class Token extends DynamoModel { | |
@Id | |
@DynamoDBIgnore |
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
public class DynamodbTableNameResolver extends DynamoDBMapperConfig.DefaultTableNameResolver { | |
private String region; | |
private String activeProfile; | |
private Environment environment = null; | |
public DynamodbTableNameResolver(String region, String activeProfile, Environment environment) { | |
this.region = region; | |
this.activeProfile = activeProfile; | |
this.environment = environment; | |
} |
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
@Configuration | |
@EnableDynamoDBRepositories(basePackages = "com.example.repository") | |
public class DynamoDbConfig { | |
@Value("${amazon.dynamodb.endpoint}") | |
private String amazonDynamoDbEndpoint; | |
@Value("${amazon.aws.access-key}") | |
private String amazonAwsAccessKey; | |
@Value("${amazon.aws.secret-key}") |
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
@Retention(RetentionPolicy.RUNTIME) | |
@Target({ElementType.TYPE}) | |
public @interface DynamodbTableEnv { | |
String value() default ""; | |
} |
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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-checkstyle-plugin</artifactId> | |
<version>3.1.2</version> | |
<dependencies> | |
<!-- sets the desired version of checkstyle --> | |
<dependency> | |
<groupId>com.puppycrawl.tools</groupId> |
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
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | |
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the Google coding conventions from Google Java Style | |
that can be found at https://google.github.io/styleguide/javaguide.html | |
Checkstyle is very configurable. Be sure to read the documentation at |
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
name: Falcon CI/CD | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] |
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
files: | |
/usr/local/bin/my_cron_script.sh: | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
#!/bin/bash | |
export $(cat /opt/elasticbeanstalk/deployment/env | xargs) | |
source $PYTHONPATH/activate | |
python3 /var/app/current/manage.py my_process |