Skip to content

Instantly share code, notes, and snippets.

@benbjurstrom
Created April 2, 2023 17:17
Show Gist options
  • Save benbjurstrom/b1a98274445ee0a359ffe0aa3c9cf299 to your computer and use it in GitHub Desktop.
Save benbjurstrom/b1a98274445ee0a359ffe0aa3c9cf299 to your computer and use it in GitHub Desktop.
Laravel Vapor: prune unused modules from aws/aws-sdk-php
#!/bin/bash
for Folder in AccessAnalyzer \
Account \
Acm \
ACMPCA \
AlexaForBusiness \
Amplify \
AmplifyBackend \
AmplifyUIBuilder \
Api \
ApiGateway \
ApiGatewayManagementApi \
ApiGatewayV2 \
AppConfig \
AppConfigData \
Appflow \
AppIntegrationsService \
ApplicationAutoScaling \
ApplicationCostProfiler \
ApplicationDiscoveryService \
ApplicationInsights \
AppMesh \
AppRegistry \
AppRunner \
Appstream \
AppSync \
ARCZonalShift \
Arn \
Athena \
AuditManager \
AugmentedAIRuntime \
AutoScaling \
AutoScalingPlans \
Backup \
BackupGateway \
BackupStorage \
Batch \
BillingConductor \
Braket \
Budgets \
Chime \
ChimeSDKIdentity \
ChimeSDKMediaPipelines \
ChimeSDKMeetings \
ChimeSDKMessaging \
ChimeSDKVoice \
CleanRooms \
ClientSideMonitoring \
Cloud9 \
CloudControlApi \
CloudDirectory \
CloudFormation \
CloudFront \
CloudHsm \
CloudHSMV2 \
CloudSearch \
CloudSearchDomain \
CloudTrail \
CloudTrailData \
CloudWatch \
CloudWatchEvents \
CloudWatchEvidently \
CloudWatchLogs \
CloudWatchRUM \
CodeArtifact \
CodeBuild \
CodeCatalyst \
CodeCommit \
CodeDeploy \
CodeGuruProfiler \
CodeGuruReviewer \
CodePipeline \
CodeStar \
CodeStarconnections \
CodeStarNotifications \
CognitoIdentity \
CognitoIdentityProvider \
CognitoSync \
Comprehend \
ComprehendMedical \
ComputeOptimizer \
ConfigService \
Connect \
ConnectCampaignService \
ConnectCases \
ConnectContactLens \
ConnectParticipant \
ConnectWisdomService \
ControlTower \
CostandUsageReportService \
CostExplorer \
Credentials \
Crypto \
CustomerProfiles \
data \
DatabaseMigrationService \
DataExchange \
DataPipeline \
DataSync \
DAX \
DefaultsMode \
Detective \
DeviceFarm \
DevOpsGuru \
DirectConnect \
DirectoryService \
DLM \
DocDB \
DocDBElastic \
drs \
DynamoDb \
DynamoDbStreams \
EBS \
Ec2 \
EC2InstanceConnect \
Ecr \
ECRPublic \
Ecs \
Efs \
EKS \
ElastiCache \
ElasticBeanstalk \
ElasticInference \
ElasticLoadBalancing \
ElasticLoadBalancingV2 \
ElasticsearchService \
ElasticTranscoder \
Emr \
EMRContainers \
EMRServerless \
Endpoint \
EndpointDiscovery \
EndpointV2 \
EventBridge \
Exception \
finspace \
FinSpaceData \
Firehose \
FIS \
FMS \
ForecastQueryService \
ForecastService \
FraudDetector \
FSx \
GameLift \
GameSparks \
Glacier \
GlobalAccelerator \
Glue \
GlueDataBrew \
Greengrass \
GreengrassV2 \
GroundStation \
GuardDuty \
Handler \
Health \
HealthLake \
Honeycode \
Iam \
IdentityStore \
imagebuilder \
ImportExport \
Inspector \
Inspector2 \
InternetMonitor \
Iot \
IoT1ClickDevicesService \
IoT1ClickProjects \
IoTAnalytics \
IotDataPlane \
IoTDeviceAdvisor \
IoTEvents \
IoTEventsData \
IoTFleetHub \
IoTFleetWise \
IoTJobsDataPlane \
IoTRoboRunner \
IoTSecureTunneling \
IoTSiteWise \
IoTThingsGraph \
IoTTwinMaker \
IoTWireless \
IVS \
ivschat \
IVSRealTime \
Kafka \
KafkaConnect \
kendra \
KendraRanking \
Keyspaces \
Kinesis \
KinesisAnalytics \
KinesisAnalyticsV2 \
KinesisVideo \
KinesisVideoArchivedMedia \
KinesisVideoMedia \
KinesisVideoSignalingChannels \
KinesisVideoWebRTCStorage \
Kms \
LakeFormation \
Lambda \
LexModelBuildingService \
LexModelsV2 \
LexRuntimeService \
LexRuntimeV2 \
LicenseManager \
LicenseManagerLinuxSubscriptions \
LicenseManagerUserSubscriptions \
Lightsail \
LocationService \
LookoutEquipment \
LookoutforVision \
LookoutMetrics \
MachineLearning \
Macie \
Macie2 \
MainframeModernization \
ManagedBlockchain \
ManagedGrafana \
MarketplaceCatalog \
MarketplaceCommerceAnalytics \
MarketplaceEntitlementService \
MarketplaceMetering \
MediaConnect \
MediaConvert \
MediaLive \
MediaPackage \
MediaPackageVod \
MediaStore \
MediaStoreData \
MediaTailor \
MemoryDB \
mgn \
MigrationHub \
MigrationHubConfig \
MigrationHubOrchestrator \
MigrationHubRefactorSpaces \
MigrationHubStrategyRecommendations \
Mobile \
MQ \
MTurk \
Multipart \
MWAA \
Neptune \
NetworkFirewall \
NetworkManager \
NimbleStudio \
OAM \
Omics \
OpenSearchServerless \
OpenSearchService \
OpsWorks \
OpsWorksCM \
Organizations \
Outposts \
Panorama \
Personalize \
PersonalizeEvents \
PersonalizeRuntime \
PI \
Pinpoint \
PinpointEmail \
PinpointSMSVoice \
PinpointSMSVoiceV2 \
Pipes \
Polly \
Pricing \
PrivateNetworks \
PrometheusService \
Proton \
QLDB \
QLDBSession \
QuickSight \
RAM \
Rds \
RDSDataService \
RecycleBin \
Redshift \
RedshiftDataAPIService \
RedshiftServerless \
Rekognition \
ResilienceHub \
ResourceExplorer2 \
ResourceGroups \
ResourceGroupsTaggingAPI \
Retry \
RoboMaker \
RolesAnywhere \
Route53 \
Route53Domains \
Route53RecoveryCluster \
Route53RecoveryControlConfig \
Route53RecoveryReadiness \
Route53Resolver \
S3 \
S3Control \
S3Outposts \
SageMaker \
SagemakerEdgeManager \
SageMakerFeatureStoreRuntime \
SageMakerGeospatial \
SageMakerMetrics \
SageMakerRuntime \
SavingsPlans \
Scheduler \
Schemas \
Script \
SecretsManager \
SecurityHub \
SecurityLake \
ServerlessApplicationRepository \
ServiceCatalog \
ServiceDiscovery \
ServiceQuotas \
Ses \
SesV2 \
Sfn \
Shield \
Signature \
signer \
SimSpaceWeaver \
Sms \
SnowBall \
SnowDeviceManagement \
Sns \
Sqs \
Ssm \
SSMContacts \
SSMIncidents \
SsmSap \
SSO \
SSOAdmin \
SSOOIDC \
StorageGateway \
Sts \
Support \
SupportApp \
Swf \
Synthetics \
Textract \
TimestreamQuery \
TimestreamWrite \
Tnb \
Token \
TranscribeService \
Transfer \
Translate \
VoiceID \
Waf \
WafRegional \
WAFV2 \
WellArchitected \
WorkDocs \
WorkLink \
WorkMail \
WorkMailMessageFlow \
WorkSpaces \
WorkSpacesWeb \
XRay
do
rm -rf "vendor/aws/aws-sdk-php/src/${Folder}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment