Skip to content

Commit fcaea29

Browse files
committed
Add cloudformation for publishing to sdk-registry
1 parent 124ce1f commit fcaea29

3 files changed

Lines changed: 41 additions & 3 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ obj
2323

2424
#MacOS
2525
.DS_Store
26-
27-

cloudformation/ci.template

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"AWSTemplateFormatVersion" : "2010-09-09",
3+
"Outputs": {
4+
"AccessKeyId": {
5+
"Value": { "Ref": "AccessKey" }
6+
},
7+
"SecretAccessKey": {
8+
"Value": { "Fn::GetAtt": ["AccessKey", "SecretAccessKey"] }
9+
}
10+
},
11+
"Resources": {
12+
"AccessKey": {
13+
"Type": "AWS::IAM::AccessKey",
14+
"Properties": {
15+
"UserName": { "Ref": "User" }
16+
}
17+
},
18+
"User": {
19+
"Type": "AWS::IAM::User",
20+
"Properties": {
21+
"Policies": [
22+
{
23+
"PolicyName": "upload-sdk-registry",
24+
"PolicyDocument": {
25+
"Statement": [
26+
{
27+
"Action": ["s3:PutObject"],
28+
"Effect": "Allow",
29+
"Resource": [
30+
"arn:aws:s3:::mapbox-api-downloads-production/v2/*",
31+
"arn:aws:s3:::mapbox-api-downloads-staging/v2/*"
32+
]
33+
}
34+
]
35+
}
36+
}
37+
]
38+
}
39+
}
40+
}
41+
}

gradle/publish.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ registry {
6666
publications = ["MapboxJavaSDKPublication"]
6767
}
6868

69-
7069
tasks.withType(Javadoc) {
7170
options.addStringOption('encoding', 'UTF-8')
7271
options.addStringOption('docencoding', 'UTF-8')

0 commit comments

Comments
 (0)