@friggframework/devtools 2.0.0--canary.400.bed3308.0 → 2.0.0--canary.404.e9d4980.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/frigg-cli/build-command/index.js +3 -18
- package/frigg-cli/deploy-command/index.js +3 -19
- package/frigg-cli/index.js +1 -73
- package/frigg-cli/install-command/index.js +2 -15
- package/frigg-cli/start-command/index.js +2 -17
- package/infrastructure/create-frigg-infrastructure.js +2 -2
- package/infrastructure/serverless-template.js +79 -529
- package/package.json +5 -9
- package/frigg-cli/.eslintrc.js +0 -141
- package/frigg-cli/__tests__/jest.config.js +0 -102
- package/frigg-cli/__tests__/unit/commands/build.test.js +0 -483
- package/frigg-cli/__tests__/unit/commands/install.test.js +0 -418
- package/frigg-cli/__tests__/unit/commands/ui.test.js +0 -592
- package/frigg-cli/__tests__/utils/command-tester.js +0 -170
- package/frigg-cli/__tests__/utils/mock-factory.js +0 -270
- package/frigg-cli/__tests__/utils/test-fixtures.js +0 -463
- package/frigg-cli/__tests__/utils/test-setup.js +0 -286
- package/frigg-cli/generate-command/__tests__/generate-command.test.js +0 -312
- package/frigg-cli/generate-command/azure-generator.js +0 -43
- package/frigg-cli/generate-command/gcp-generator.js +0 -47
- package/frigg-cli/generate-command/index.js +0 -350
- package/frigg-cli/generate-command/terraform-generator.js +0 -555
- package/frigg-cli/generate-iam-command.js +0 -115
- package/frigg-cli/package.json +0 -75
- package/frigg-cli/ui-command/index.js +0 -167
- package/frigg-cli/utils/app-resolver.js +0 -319
- package/frigg-cli/utils/backend-path.js +0 -38
- package/frigg-cli/utils/process-manager.js +0 -199
- package/frigg-cli/utils/repo-detection.js +0 -405
- package/infrastructure/AWS-DISCOVERY-TROUBLESHOOTING.md +0 -245
- package/infrastructure/AWS-IAM-CREDENTIAL-NEEDS.md +0 -620
- package/infrastructure/DEPLOYMENT-INSTRUCTIONS.md +0 -268
- package/infrastructure/GENERATE-IAM-DOCS.md +0 -253
- package/infrastructure/IAM-POLICY-TEMPLATES.md +0 -176
- package/infrastructure/README-TESTING.md +0 -332
- package/infrastructure/README.md +0 -421
- package/infrastructure/WEBSOCKET-CONFIGURATION.md +0 -105
- package/infrastructure/__tests__/fixtures/mock-aws-resources.js +0 -391
- package/infrastructure/__tests__/helpers/test-utils.js +0 -277
- package/infrastructure/aws-discovery.js +0 -568
- package/infrastructure/aws-discovery.test.js +0 -373
- package/infrastructure/build-time-discovery.js +0 -206
- package/infrastructure/build-time-discovery.test.js +0 -375
- package/infrastructure/frigg-deployment-iam-stack.yaml +0 -393
- package/infrastructure/iam-generator.js +0 -810
- package/infrastructure/iam-generator.test.js +0 -169
- package/infrastructure/iam-policy-basic.json +0 -236
- package/infrastructure/iam-policy-full.json +0 -305
- package/infrastructure/integration.test.js +0 -383
- package/infrastructure/run-discovery.js +0 -110
- package/infrastructure/serverless-template.test.js +0 -553
- package/management-ui/.eslintrc.js +0 -22
- package/management-ui/README.md +0 -203
- package/management-ui/components.json +0 -21
- package/management-ui/index.html +0 -13
- package/management-ui/merge-conflict-cleaner.py +0 -371
- package/management-ui/package-lock.json +0 -10997
- package/management-ui/package.json +0 -76
- package/management-ui/postcss.config.js +0 -6
- package/management-ui/server/api/backend.js +0 -256
- package/management-ui/server/api/cli.js +0 -315
- package/management-ui/server/api/codegen.js +0 -663
- package/management-ui/server/api/connections.js +0 -857
- package/management-ui/server/api/discovery.js +0 -185
- package/management-ui/server/api/environment/index.js +0 -1
- package/management-ui/server/api/environment/router.js +0 -378
- package/management-ui/server/api/environment.js +0 -328
- package/management-ui/server/api/integrations.js +0 -479
- package/management-ui/server/api/logs.js +0 -248
- package/management-ui/server/api/monitoring.js +0 -282
- package/management-ui/server/api/open-ide.js +0 -31
- package/management-ui/server/api/project.js +0 -553
- package/management-ui/server/api/users/sessions.js +0 -371
- package/management-ui/server/api/users/simulation.js +0 -254
- package/management-ui/server/api/users.js +0 -362
- package/management-ui/server/api-contract.md +0 -275
- package/management-ui/server/index.js +0 -428
- package/management-ui/server/middleware/errorHandler.js +0 -70
- package/management-ui/server/middleware/security.js +0 -32
- package/management-ui/server/processManager.js +0 -296
- package/management-ui/server/server.js +0 -188
- package/management-ui/server/services/aws-monitor.js +0 -413
- package/management-ui/server/services/npm-registry.js +0 -347
- package/management-ui/server/services/template-engine.js +0 -538
- package/management-ui/server/utils/cliIntegration.js +0 -220
- package/management-ui/server/utils/environment/auditLogger.js +0 -471
- package/management-ui/server/utils/environment/awsParameterStore.js +0 -264
- package/management-ui/server/utils/environment/encryption.js +0 -278
- package/management-ui/server/utils/environment/envFileManager.js +0 -286
- package/management-ui/server/utils/import-commonjs.js +0 -28
- package/management-ui/server/utils/response.js +0 -83
- package/management-ui/server/websocket/handler.js +0 -325
- package/management-ui/src/App.jsx +0 -51
- package/management-ui/src/assets/FriggLogo.svg +0 -1
- package/management-ui/src/components/AppRouter.jsx +0 -65
- package/management-ui/src/components/Button.jsx +0 -2
- package/management-ui/src/components/Card.jsx +0 -9
- package/management-ui/src/components/EnvironmentCompare.jsx +0 -400
- package/management-ui/src/components/EnvironmentEditor.jsx +0 -372
- package/management-ui/src/components/EnvironmentImportExport.jsx +0 -469
- package/management-ui/src/components/EnvironmentSchema.jsx +0 -491
- package/management-ui/src/components/EnvironmentSecurity.jsx +0 -463
- package/management-ui/src/components/ErrorBoundary.jsx +0 -73
- package/management-ui/src/components/IntegrationCard.jsx +0 -199
- package/management-ui/src/components/IntegrationCardEnhanced.jsx +0 -490
- package/management-ui/src/components/IntegrationExplorer.jsx +0 -379
- package/management-ui/src/components/IntegrationStatus.jsx +0 -235
- package/management-ui/src/components/Layout.jsx +0 -250
- package/management-ui/src/components/LoadingSpinner.jsx +0 -45
- package/management-ui/src/components/RepositoryPicker.jsx +0 -248
- package/management-ui/src/components/SessionMonitor.jsx +0 -255
- package/management-ui/src/components/StatusBadge.jsx +0 -70
- package/management-ui/src/components/UserContextSwitcher.jsx +0 -154
- package/management-ui/src/components/UserSimulation.jsx +0 -299
- package/management-ui/src/components/Welcome.jsx +0 -434
- package/management-ui/src/components/codegen/APIEndpointGenerator.jsx +0 -637
- package/management-ui/src/components/codegen/APIModuleSelector.jsx +0 -227
- package/management-ui/src/components/codegen/CodeGenerationWizard.jsx +0 -247
- package/management-ui/src/components/codegen/CodePreviewEditor.jsx +0 -316
- package/management-ui/src/components/codegen/DynamicModuleForm.jsx +0 -271
- package/management-ui/src/components/codegen/FormBuilder.jsx +0 -737
- package/management-ui/src/components/codegen/IntegrationGenerator.jsx +0 -855
- package/management-ui/src/components/codegen/ProjectScaffoldWizard.jsx +0 -797
- package/management-ui/src/components/codegen/SchemaBuilder.jsx +0 -303
- package/management-ui/src/components/codegen/TemplateSelector.jsx +0 -586
- package/management-ui/src/components/codegen/index.js +0 -10
- package/management-ui/src/components/connections/ConnectionConfigForm.jsx +0 -362
- package/management-ui/src/components/connections/ConnectionHealthMonitor.jsx +0 -182
- package/management-ui/src/components/connections/ConnectionTester.jsx +0 -200
- package/management-ui/src/components/connections/EntityRelationshipMapper.jsx +0 -292
- package/management-ui/src/components/connections/OAuthFlow.jsx +0 -204
- package/management-ui/src/components/connections/index.js +0 -5
- package/management-ui/src/components/index.js +0 -21
- package/management-ui/src/components/monitoring/APIGatewayMetrics.jsx +0 -222
- package/management-ui/src/components/monitoring/LambdaMetrics.jsx +0 -169
- package/management-ui/src/components/monitoring/MetricsChart.jsx +0 -197
- package/management-ui/src/components/monitoring/MonitoringDashboard.jsx +0 -393
- package/management-ui/src/components/monitoring/SQSMetrics.jsx +0 -246
- package/management-ui/src/components/monitoring/index.js +0 -6
- package/management-ui/src/components/monitoring/monitoring.css +0 -218
- package/management-ui/src/components/theme-provider.jsx +0 -52
- package/management-ui/src/components/theme-toggle.jsx +0 -39
- package/management-ui/src/components/ui/badge.tsx +0 -36
- package/management-ui/src/components/ui/button.test.jsx +0 -56
- package/management-ui/src/components/ui/button.tsx +0 -57
- package/management-ui/src/components/ui/card.tsx +0 -76
- package/management-ui/src/components/ui/dropdown-menu.tsx +0 -199
- package/management-ui/src/components/ui/select.tsx +0 -157
- package/management-ui/src/components/ui/skeleton.jsx +0 -15
- package/management-ui/src/hooks/useFrigg.jsx +0 -387
- package/management-ui/src/hooks/useSocket.jsx +0 -58
- package/management-ui/src/index.css +0 -194
- package/management-ui/src/lib/utils.ts +0 -6
- package/management-ui/src/main.jsx +0 -10
- package/management-ui/src/pages/CodeGeneration.jsx +0 -14
- package/management-ui/src/pages/Connections.jsx +0 -252
- package/management-ui/src/pages/ConnectionsEnhanced.jsx +0 -427
- package/management-ui/src/pages/Dashboard.jsx +0 -311
- package/management-ui/src/pages/Environment.jsx +0 -314
- package/management-ui/src/pages/IntegrationConfigure.jsx +0 -544
- package/management-ui/src/pages/IntegrationDiscovery.jsx +0 -479
- package/management-ui/src/pages/IntegrationTest.jsx +0 -494
- package/management-ui/src/pages/Integrations.jsx +0 -254
- package/management-ui/src/pages/Monitoring.jsx +0 -17
- package/management-ui/src/pages/Simulation.jsx +0 -155
- package/management-ui/src/pages/Users.jsx +0 -492
- package/management-ui/src/services/api.js +0 -41
- package/management-ui/src/services/apiModuleService.js +0 -193
- package/management-ui/src/services/websocket-handlers.js +0 -120
- package/management-ui/src/test/api/project.test.js +0 -273
- package/management-ui/src/test/components/Welcome.test.jsx +0 -378
- package/management-ui/src/test/mocks/server.js +0 -178
- package/management-ui/src/test/setup.js +0 -61
- package/management-ui/src/test/utils/test-utils.jsx +0 -134
- package/management-ui/src/utils/repository.js +0 -98
- package/management-ui/src/utils/repository.test.js +0 -118
- package/management-ui/src/workflows/phase2-integration-workflows.js +0 -884
- package/management-ui/tailwind.config.js +0 -63
- package/management-ui/tsconfig.json +0 -37
- package/management-ui/tsconfig.node.json +0 -10
- package/management-ui/vite.config.js +0 -26
- package/management-ui/vitest.config.js +0 -38
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
const { generateIAMCloudFormation, getFeatureSummary } = require('./iam-generator');
|
|
2
|
-
|
|
3
|
-
describe('IAM Generator', () => {
|
|
4
|
-
describe('getFeatureSummary', () => {
|
|
5
|
-
it('should detect all features when enabled', () => {
|
|
6
|
-
const appDefinition = {
|
|
7
|
-
name: 'test-app',
|
|
8
|
-
integrations: ['Integration1', 'Integration2'],
|
|
9
|
-
vpc: { enable: true },
|
|
10
|
-
encryption: { useDefaultKMSForFieldLevelEncryption: true },
|
|
11
|
-
ssm: { enable: true },
|
|
12
|
-
websockets: { enable: true }
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const summary = getFeatureSummary(appDefinition);
|
|
16
|
-
|
|
17
|
-
expect(summary.appName).toBe('test-app');
|
|
18
|
-
expect(summary.integrationCount).toBe(2);
|
|
19
|
-
expect(summary.features.core).toBe(true);
|
|
20
|
-
expect(summary.features.vpc).toBe(true);
|
|
21
|
-
expect(summary.features.kms).toBe(true);
|
|
22
|
-
expect(summary.features.ssm).toBe(true);
|
|
23
|
-
expect(summary.features.websockets).toBe(true);
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it('should detect minimal features when disabled', () => {
|
|
27
|
-
const appDefinition = {
|
|
28
|
-
integrations: []
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const summary = getFeatureSummary(appDefinition);
|
|
32
|
-
|
|
33
|
-
expect(summary.appName).toBe('Unnamed Frigg App');
|
|
34
|
-
expect(summary.integrationCount).toBe(0);
|
|
35
|
-
expect(summary.features.core).toBe(true);
|
|
36
|
-
expect(summary.features.vpc).toBe(false);
|
|
37
|
-
expect(summary.features.kms).toBe(false);
|
|
38
|
-
expect(summary.features.ssm).toBe(false);
|
|
39
|
-
expect(summary.features.websockets).toBe(false);
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
describe('generateIAMCloudFormation', () => {
|
|
44
|
-
it('should generate valid CloudFormation YAML', () => {
|
|
45
|
-
const appDefinition = {
|
|
46
|
-
name: 'test-app',
|
|
47
|
-
integrations: [],
|
|
48
|
-
vpc: { enable: false },
|
|
49
|
-
encryption: { useDefaultKMSForFieldLevelEncryption: false },
|
|
50
|
-
ssm: { enable: false },
|
|
51
|
-
websockets: { enable: false }
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const yaml = generateIAMCloudFormation(appDefinition);
|
|
55
|
-
|
|
56
|
-
expect(yaml).toContain('AWSTemplateFormatVersion');
|
|
57
|
-
expect(yaml).toContain('FriggDeploymentUser');
|
|
58
|
-
expect(yaml).toContain('FriggCoreDeploymentPolicy');
|
|
59
|
-
expect(yaml).toContain('FriggDiscoveryPolicy');
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
it('should include VPC policy when VPC is enabled', () => {
|
|
63
|
-
const appDefinition = {
|
|
64
|
-
name: 'test-app',
|
|
65
|
-
integrations: [],
|
|
66
|
-
vpc: { enable: true }
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const yaml = generateIAMCloudFormation(appDefinition);
|
|
70
|
-
|
|
71
|
-
expect(yaml).toContain('FriggVPCPolicy');
|
|
72
|
-
expect(yaml).toContain('CreateVPCPermissions');
|
|
73
|
-
expect(yaml).toContain('EnableVPCSupport');
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
it('should include KMS policy when encryption is enabled', () => {
|
|
77
|
-
const appDefinition = {
|
|
78
|
-
name: 'test-app',
|
|
79
|
-
integrations: [],
|
|
80
|
-
encryption: { useDefaultKMSForFieldLevelEncryption: true }
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const yaml = generateIAMCloudFormation(appDefinition);
|
|
84
|
-
|
|
85
|
-
expect(yaml).toContain('FriggKMSPolicy');
|
|
86
|
-
expect(yaml).toContain('CreateKMSPermissions');
|
|
87
|
-
expect(yaml).toContain('EnableKMSSupport');
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
it('should include SSM policy when SSM is enabled', () => {
|
|
91
|
-
const appDefinition = {
|
|
92
|
-
name: 'test-app',
|
|
93
|
-
integrations: [],
|
|
94
|
-
ssm: { enable: true }
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
const yaml = generateIAMCloudFormation(appDefinition);
|
|
98
|
-
|
|
99
|
-
expect(yaml).toContain('FriggSSMPolicy');
|
|
100
|
-
expect(yaml).toContain('CreateSSMPermissions');
|
|
101
|
-
expect(yaml).toContain('EnableSSMSupport');
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
it('should set correct default parameter values based on features', () => {
|
|
105
|
-
const appDefinition = {
|
|
106
|
-
name: 'test-app',
|
|
107
|
-
integrations: [],
|
|
108
|
-
vpc: { enable: true },
|
|
109
|
-
encryption: { useDefaultKMSForFieldLevelEncryption: false },
|
|
110
|
-
ssm: { enable: true }
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
const yaml = generateIAMCloudFormation(appDefinition);
|
|
114
|
-
|
|
115
|
-
// Check parameter defaults match the enabled features
|
|
116
|
-
expect(yaml).toContain('Default: true'); // VPC enabled
|
|
117
|
-
expect(yaml).toContain('Default: false'); // KMS disabled
|
|
118
|
-
// SSM should be true
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
it('should include all core permissions', () => {
|
|
122
|
-
const appDefinition = {
|
|
123
|
-
name: 'test-app',
|
|
124
|
-
integrations: []
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
const yaml = generateIAMCloudFormation(appDefinition);
|
|
128
|
-
|
|
129
|
-
// Check for core permissions
|
|
130
|
-
expect(yaml).toContain('cloudformation:CreateStack');
|
|
131
|
-
expect(yaml).toContain('cloudformation:ListStackResources');
|
|
132
|
-
expect(yaml).toContain('lambda:CreateFunction');
|
|
133
|
-
expect(yaml).toContain('iam:CreateRole');
|
|
134
|
-
expect(yaml).toContain('s3:CreateBucket');
|
|
135
|
-
expect(yaml).toContain('sqs:CreateQueue');
|
|
136
|
-
expect(yaml).toContain('sns:CreateTopic');
|
|
137
|
-
expect(yaml).toContain('logs:CreateLogGroup');
|
|
138
|
-
expect(yaml).toContain('apigateway:POST');
|
|
139
|
-
expect(yaml).toContain('lambda:ListVersionsByFunction');
|
|
140
|
-
expect(yaml).toContain('iam:ListPolicyVersions');
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
it('should include internal-error-queue pattern in SQS resources', () => {
|
|
144
|
-
const appDefinition = {
|
|
145
|
-
name: 'test-app',
|
|
146
|
-
integrations: []
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
const yaml = generateIAMCloudFormation(appDefinition);
|
|
150
|
-
|
|
151
|
-
expect(yaml).toContain('internal-error-queue-*');
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
it('should generate outputs section', () => {
|
|
155
|
-
const appDefinition = {
|
|
156
|
-
name: 'test-app',
|
|
157
|
-
integrations: []
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
const yaml = generateIAMCloudFormation(appDefinition);
|
|
161
|
-
|
|
162
|
-
expect(yaml).toContain('Outputs:');
|
|
163
|
-
expect(yaml).toContain('DeploymentUserArn:');
|
|
164
|
-
expect(yaml).toContain('AccessKeyId:');
|
|
165
|
-
expect(yaml).toContain('SecretAccessKeyCommand:');
|
|
166
|
-
expect(yaml).toContain('CredentialsSecretArn:');
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
});
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Version": "2012-10-17",
|
|
3
|
-
"Statement": [
|
|
4
|
-
{
|
|
5
|
-
"Sid": "AWSDiscoveryPermissions",
|
|
6
|
-
"Effect": "Allow",
|
|
7
|
-
"Action": [
|
|
8
|
-
"sts:GetCallerIdentity",
|
|
9
|
-
"ec2:DescribeVpcs",
|
|
10
|
-
"ec2:DescribeSubnets",
|
|
11
|
-
"ec2:DescribeSecurityGroups",
|
|
12
|
-
"ec2:DescribeRouteTables",
|
|
13
|
-
"kms:ListKeys",
|
|
14
|
-
"kms:DescribeKey"
|
|
15
|
-
],
|
|
16
|
-
"Resource": "*"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"Sid": "CloudFormationFriggStacks",
|
|
20
|
-
"Effect": "Allow",
|
|
21
|
-
"Action": [
|
|
22
|
-
"cloudformation:CreateStack",
|
|
23
|
-
"cloudformation:UpdateStack",
|
|
24
|
-
"cloudformation:DeleteStack",
|
|
25
|
-
"cloudformation:DescribeStacks",
|
|
26
|
-
"cloudformation:DescribeStackEvents",
|
|
27
|
-
"cloudformation:DescribeStackResources",
|
|
28
|
-
"cloudformation:DescribeStackResource",
|
|
29
|
-
"cloudformation:ListStackResources",
|
|
30
|
-
"cloudformation:GetTemplate",
|
|
31
|
-
"cloudformation:ValidateTemplate",
|
|
32
|
-
"cloudformation:DescribeChangeSet",
|
|
33
|
-
"cloudformation:CreateChangeSet",
|
|
34
|
-
"cloudformation:DeleteChangeSet",
|
|
35
|
-
"cloudformation:ExecuteChangeSet"
|
|
36
|
-
],
|
|
37
|
-
"Resource": [
|
|
38
|
-
"arn:aws:cloudformation:*:*:stack/*frigg*/*"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"Sid": "S3DeploymentBucket",
|
|
43
|
-
"Effect": "Allow",
|
|
44
|
-
"Action": [
|
|
45
|
-
"s3:CreateBucket",
|
|
46
|
-
"s3:DeleteBucket",
|
|
47
|
-
"s3:PutObject",
|
|
48
|
-
"s3:GetObject",
|
|
49
|
-
"s3:DeleteObject",
|
|
50
|
-
"s3:PutBucketPolicy",
|
|
51
|
-
"s3:GetBucketPolicy",
|
|
52
|
-
"s3:DeleteBucketPolicy",
|
|
53
|
-
"s3:PutBucketVersioning",
|
|
54
|
-
"s3:GetBucketVersioning",
|
|
55
|
-
"s3:PutBucketPublicAccessBlock",
|
|
56
|
-
"s3:GetBucketPublicAccessBlock",
|
|
57
|
-
"s3:PutBucketTagging",
|
|
58
|
-
"s3:GetBucketTagging",
|
|
59
|
-
"s3:DeleteBucketTagging",
|
|
60
|
-
"s3:PutBucketEncryption",
|
|
61
|
-
"s3:GetBucketEncryption",
|
|
62
|
-
"s3:PutEncryptionConfiguration",
|
|
63
|
-
"s3:PutBucketNotification",
|
|
64
|
-
"s3:GetBucketNotification",
|
|
65
|
-
"s3:GetBucketLocation",
|
|
66
|
-
"s3:ListBucket",
|
|
67
|
-
"s3:GetBucketAcl",
|
|
68
|
-
"s3:PutBucketAcl"
|
|
69
|
-
],
|
|
70
|
-
"Resource": [
|
|
71
|
-
"arn:aws:s3:::*serverless*",
|
|
72
|
-
"arn:aws:s3:::*serverless*/*"
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"Sid": "LambdaFriggFunctions",
|
|
77
|
-
"Effect": "Allow",
|
|
78
|
-
"Action": [
|
|
79
|
-
"lambda:CreateFunction",
|
|
80
|
-
"lambda:UpdateFunctionCode",
|
|
81
|
-
"lambda:UpdateFunctionConfiguration",
|
|
82
|
-
"lambda:DeleteFunction",
|
|
83
|
-
"lambda:GetFunction",
|
|
84
|
-
"lambda:ListFunctions",
|
|
85
|
-
"lambda:PublishVersion",
|
|
86
|
-
"lambda:CreateAlias",
|
|
87
|
-
"lambda:UpdateAlias",
|
|
88
|
-
"lambda:DeleteAlias",
|
|
89
|
-
"lambda:GetAlias",
|
|
90
|
-
"lambda:AddPermission",
|
|
91
|
-
"lambda:RemovePermission",
|
|
92
|
-
"lambda:GetPolicy",
|
|
93
|
-
"lambda:PutProvisionedConcurrencyConfig",
|
|
94
|
-
"lambda:DeleteProvisionedConcurrencyConfig",
|
|
95
|
-
"lambda:PutConcurrency",
|
|
96
|
-
"lambda:PutFunctionConcurrency",
|
|
97
|
-
"lambda:DeleteConcurrency",
|
|
98
|
-
"lambda:TagResource",
|
|
99
|
-
"lambda:UntagResource",
|
|
100
|
-
"lambda:ListVersionsByFunction"
|
|
101
|
-
],
|
|
102
|
-
"Resource": [
|
|
103
|
-
"arn:aws:lambda:*:*:function:*frigg*"
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"Sid": "FriggLambdaEventSourceMapping",
|
|
108
|
-
"Effect": "Allow",
|
|
109
|
-
"Action": [
|
|
110
|
-
"lambda:CreateEventSourceMapping",
|
|
111
|
-
"lambda:DeleteEventSourceMapping",
|
|
112
|
-
"lambda:GetEventSourceMapping",
|
|
113
|
-
"lambda:UpdateEventSourceMapping",
|
|
114
|
-
"lambda:ListEventSourceMappings",
|
|
115
|
-
"lambda:TagResource",
|
|
116
|
-
"lambda:UntagResource",
|
|
117
|
-
"lambda:ListTags"
|
|
118
|
-
],
|
|
119
|
-
"Resource": [
|
|
120
|
-
"arn:aws:lambda:*:*:event-source-mapping:*"
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"Sid": "IAMRolesForFriggLambda",
|
|
125
|
-
"Effect": "Allow",
|
|
126
|
-
"Action": [
|
|
127
|
-
"iam:CreateRole",
|
|
128
|
-
"iam:DeleteRole",
|
|
129
|
-
"iam:GetRole",
|
|
130
|
-
"iam:PassRole",
|
|
131
|
-
"iam:PutRolePolicy",
|
|
132
|
-
"iam:DeleteRolePolicy",
|
|
133
|
-
"iam:GetRolePolicy",
|
|
134
|
-
"iam:AttachRolePolicy",
|
|
135
|
-
"iam:DetachRolePolicy",
|
|
136
|
-
"iam:TagRole",
|
|
137
|
-
"iam:UntagRole"
|
|
138
|
-
],
|
|
139
|
-
"Resource": [
|
|
140
|
-
"arn:aws:iam::*:role/*frigg*",
|
|
141
|
-
"arn:aws:iam::*:role/*frigg*LambdaRole*"
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"Sid": "IAMPolicyVersionPermissions",
|
|
146
|
-
"Effect": "Allow",
|
|
147
|
-
"Action": [
|
|
148
|
-
"iam:ListPolicyVersions"
|
|
149
|
-
],
|
|
150
|
-
"Resource": [
|
|
151
|
-
"arn:aws:iam::*:policy/*"
|
|
152
|
-
]
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"Sid": "FriggMessagingServices",
|
|
156
|
-
"Effect": "Allow",
|
|
157
|
-
"Action": [
|
|
158
|
-
"sqs:CreateQueue",
|
|
159
|
-
"sqs:DeleteQueue",
|
|
160
|
-
"sqs:GetQueueAttributes",
|
|
161
|
-
"sqs:SetQueueAttributes",
|
|
162
|
-
"sqs:GetQueueUrl",
|
|
163
|
-
"sqs:TagQueue",
|
|
164
|
-
"sqs:UntagQueue"
|
|
165
|
-
],
|
|
166
|
-
"Resource": [
|
|
167
|
-
"arn:aws:sqs:*:*:*frigg*",
|
|
168
|
-
"arn:aws:sqs:*:*:internal-error-queue-*"
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"Sid": "FriggSNSTopics",
|
|
173
|
-
"Effect": "Allow",
|
|
174
|
-
"Action": [
|
|
175
|
-
"sns:CreateTopic",
|
|
176
|
-
"sns:DeleteTopic",
|
|
177
|
-
"sns:GetTopicAttributes",
|
|
178
|
-
"sns:SetTopicAttributes",
|
|
179
|
-
"sns:Subscribe",
|
|
180
|
-
"sns:Unsubscribe",
|
|
181
|
-
"sns:ListSubscriptionsByTopic",
|
|
182
|
-
"sns:TagResource",
|
|
183
|
-
"sns:UntagResource"
|
|
184
|
-
],
|
|
185
|
-
"Resource": [
|
|
186
|
-
"arn:aws:sns:*:*:*frigg*"
|
|
187
|
-
]
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"Sid": "FriggMonitoringAndLogs",
|
|
191
|
-
"Effect": "Allow",
|
|
192
|
-
"Action": [
|
|
193
|
-
"cloudwatch:PutMetricAlarm",
|
|
194
|
-
"cloudwatch:DeleteAlarms",
|
|
195
|
-
"cloudwatch:DescribeAlarms",
|
|
196
|
-
"logs:CreateLogGroup",
|
|
197
|
-
"logs:CreateLogStream",
|
|
198
|
-
"logs:DeleteLogGroup",
|
|
199
|
-
"logs:DescribeLogGroups",
|
|
200
|
-
"logs:DescribeLogStreams",
|
|
201
|
-
"logs:FilterLogEvents",
|
|
202
|
-
"logs:PutLogEvents",
|
|
203
|
-
"logs:PutRetentionPolicy",
|
|
204
|
-
"logs:TagResource",
|
|
205
|
-
"logs:UntagResource"
|
|
206
|
-
],
|
|
207
|
-
"Resource": [
|
|
208
|
-
"arn:aws:logs:*:*:log-group:/aws/lambda/*frigg*",
|
|
209
|
-
"arn:aws:logs:*:*:log-group:/aws/lambda/*frigg*:*",
|
|
210
|
-
"arn:aws:cloudwatch:*:*:alarm:*frigg*"
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"Sid": "FriggAPIGateway",
|
|
215
|
-
"Effect": "Allow",
|
|
216
|
-
"Action": [
|
|
217
|
-
"apigateway:POST",
|
|
218
|
-
"apigateway:PUT",
|
|
219
|
-
"apigateway:DELETE",
|
|
220
|
-
"apigateway:GET",
|
|
221
|
-
"apigateway:PATCH"
|
|
222
|
-
],
|
|
223
|
-
"Resource": [
|
|
224
|
-
"arn:aws:apigateway:*::/restapis",
|
|
225
|
-
"arn:aws:apigateway:*::/restapis/*",
|
|
226
|
-
"arn:aws:apigateway:*::/domainnames",
|
|
227
|
-
<<<<<<< HEAD
|
|
228
|
-
"arn:aws:apigateway:*::/domainnames/*",
|
|
229
|
-
=======
|
|
230
|
-
"arn:aws:apigateway:*::/domainnames/*",
|
|
231
|
-
>>>>>>> 37c4892ee8a686eb7acfcd17c333b0ed73e1f120
|
|
232
|
-
"arn:aws:apigateway:*::/tags/*"
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
}
|